mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-28 15:46:01 +00:00
Fixed packet security
This commit is contained in:
1 parent
1c90980d68
commit
7ae60615e2
57 files changed
+1149
-984
No files matched your search
@@ -30,11 +30,14 @@ public class TileEntityInductionProvider extends TileEntityBasicBlock
|
||||
@Override
|
||||
public void handlePacketData(ByteBuf dataStream)
|
||||
{
|
||||
tier = InductionProviderTier.values()[dataStream.readInt()];
|
||||
|
||||
super.handlePacketData(dataStream);
|
||||
|
||||
MekanismUtils.updateBlock(worldObj, xCoord, yCoord, zCoord);
|
||||
if(worldObj.isRemote)
|
||||
{
|
||||
tier = InductionProviderTier.values()[dataStream.readInt()];
|
||||
|
||||
super.handlePacketData(dataStream);
|
||||
|
||||
MekanismUtils.updateBlock(worldObj, xCoord, yCoord, zCoord);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user