This commit is contained in:
parent
31edef0735
commit
3b6ce0db8a
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ public class ChatInfo extends Feature {
|
|||
if(event.getPacket() instanceof SPacketEntityTeleport) {
|
||||
SPacketEntityTeleport packet2 = (SPacketEntityTeleport) event.getPacket();
|
||||
|
||||
if (! (mc.world.getEntityByID(packet2.getEntityId()) instanceof EntityPlayer)) return false;
|
||||
if (! (mc.world.getEntityByID(packet2.getEntityId()) instanceof EntityPlayer)) return;
|
||||
if (Math.abs(mc.player.posX - packet2.getX()) > 50d || Math.abs(mc.player.posZ - packet2.getZ()) > 50d) {
|
||||
String name = "Unknown";
|
||||
Entity entity = mc.world.getEntityByID(packet2.getEntityId());
|
||||
|
|
Loading…
Add table
Reference in a new issue