mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-20 04:09:40 +00:00
Fix most outstanding bugs
This commit is contained in:
1 parent
687a29e221
commit
6192f25aec
60 files changed
+2970
-1407
No files matched your search
@@ -14,6 +14,7 @@ import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.common.DimensionManager;
|
||||
import tconstruct.TConstruct;
|
||||
import tconstruct.blocks.logic.DrawbridgeLogic;
|
||||
import tconstruct.blocks.logic.ToolForgeLogic;
|
||||
import tconstruct.blocks.logic.ToolStationLogic;
|
||||
import tconstruct.library.blocks.InventoryLogic;
|
||||
@@ -120,6 +121,22 @@ public class TPacketHandler implements IPacketHandler
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
else if (packetID == 5) //Drawbridge
|
||||
{
|
||||
int dimension = inputStream.readInt();
|
||||
World world = DimensionManager.getWorld(dimension);
|
||||
int x = inputStream.readInt();
|
||||
int y = inputStream.readInt();
|
||||
int z = inputStream.readInt();
|
||||
TileEntity te = world.getBlockTileEntity(x, y, z);
|
||||
|
||||
byte direction = inputStream.readByte();
|
||||
if (te instanceof DrawbridgeLogic)
|
||||
{
|
||||
((DrawbridgeLogic) te).setPlacementDirection(direction);
|
||||
}
|
||||
}
|
||||
|
||||
else if (packetID == 10) //Double jump
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user