Fixes a NPE

This commit is contained in:
Sotr
2019-04-03 01:28:50 +08:00
parent fc19a9cfce
commit 4de56af786

View File

@@ -842,6 +842,7 @@ public class EntityPlayer extends EntityHuman implements ICrafting {
}
public void openSign(TileEntitySign tileentitysign) {
if (tileentitysign == null) return; // Akarin - fixes a NPE
tileentitysign.a((EntityHuman) this);
this.playerConnection.sendPacket(new PacketPlayOutOpenSignEditor(tileentitysign.getPosition()));
}