Creative Tab Signature + Matrix Frame

This commit is contained in:
Sebastian Hartte
2020-06-01 14:11:05 +02:00
parent 423aaf0762
commit 17f73f214d
12 changed files with 49 additions and 27 deletions
@@ -36,6 +36,7 @@ import net.minecraft.util.Hand;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.BlockRayTraceResult;
import net.minecraft.world.IBlockReader;
import net.minecraft.world.IWorldReader;
import net.minecraft.world.World;
import net.minecraftforge.common.util.FakePlayer;
@@ -157,9 +158,9 @@ public class BlockCrank extends AEBaseTileBlock
}
@Override
public boolean canPlaceBlockAt( final World world, final BlockPos pos )
public boolean isValidPosition(BlockState state, IWorldReader w, BlockPos pos)
{
return this.findCrankable( world, pos ) != null;
return this.findCrankable( w, pos ) != null;
}
@Override