Add a sanity check

This commit is contained in:
Andrew 2013-08-07 22:51:55 +12:00
parent 1d5bcebce9
commit ea5547a6c6

View File

@ -132,6 +132,8 @@ public class LibsDisguises extends JavaPlugin {
}
protected PacketContainer[] constructPacket(Disguise disguise, Entity disguisedEntity) {
if (disguise.getEntity() == null)
disguise.setEntity(disguisedEntity);
ProtocolManager manager = ProtocolLibrary.getProtocolManager();
net.minecraft.server.v1_6_R2.Entity nmsEntity = ((CraftEntity) disguisedEntity).getHandle();
ArrayList<PacketContainer> packets = new ArrayList<PacketContainer>();