mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-10-26 14:33:50 +00:00
Fix possible packet hacking (https://github.com/N1nt4nd0/Xenobyte/tree/master/src/main/java/forgefuck/team/xenobyte/modules)
This commit is contained in:
1 parent
1ba27e2761
commit
cae72b2db6
5 files changed
+81
-50
No files matched your search
@@ -62,7 +62,7 @@ public class SignDataPacket extends AbstractPacket
|
||||
{
|
||||
TileEntity te = player.worldObj.getTileEntity(x, y, z);
|
||||
|
||||
if (te != null && te instanceof BattlesignLogic)
|
||||
if (te instanceof BattlesignLogic)
|
||||
{
|
||||
BattlesignLogic logic = (BattlesignLogic) te;
|
||||
|
||||
@@ -73,9 +73,14 @@ public class SignDataPacket extends AbstractPacket
|
||||
@Override
|
||||
public void handleServerSide (EntityPlayer player)
|
||||
{
|
||||
if (player.worldObj.blockExists(x, y, z))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
TileEntity te = player.worldObj.getTileEntity(x, y, z);
|
||||
|
||||
if (te != null && te instanceof BattlesignLogic)
|
||||
if (te instanceof BattlesignLogic)
|
||||
{
|
||||
BattlesignLogic logic = (BattlesignLogic) te;
|
||||
|
||||
|
||||
Reference in new issue
Block a user