mirror of
https://github.com/GTNewHorizons/ForgeMultipart.git
synced 2026-11-20 20:22:15 +00:00
CCC-Public cleanup
This commit is contained in:
1 parent
a95f579e88
commit
20ce3e153a
4 files changed
+27
-8
No files matched your search
@@ -4,7 +4,6 @@ import codechicken.core.packet.PacketCustom;
|
||||
import codechicken.core.raytracer.RayTracer;
|
||||
import codechicken.core.vec.BlockCoord;
|
||||
import codechicken.core.vec.Vector3;
|
||||
import codechicken.multipart.TMultiPart;
|
||||
import codechicken.multipart.TileMultipart;
|
||||
import codechicken.multipart.TileMultipartObj;
|
||||
import net.minecraft.block.Block;
|
||||
@@ -34,6 +33,9 @@ public class EventHandler
|
||||
BlockCoord pos = new BlockCoord(hit.blockX, hit.blockY, hit.blockZ).offset(hit.sideHit);
|
||||
ItemStack held = player.getHeldItem();
|
||||
McBlockPart part = null;
|
||||
if(held == null)
|
||||
return false;
|
||||
|
||||
if(held.itemID == Block.torchWood.blockID)
|
||||
part = TorchPart.placement(world, pos, hit.sideHit);
|
||||
|
||||
|
||||
Reference in new issue
Block a user