Sped up teleporting even more, + fixed isSneaking

This commit is contained in:
Dinnerbone
2011-02-28 20:30:33 +00:00
parent 5f20de34a9
commit d142fabfc1
2 changed files with 5 additions and 18 deletions

View File

@@ -170,9 +170,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
entity.a.e = newEntity;
entity = newEntity;
} else {
oldWorld.manager.b(entity);
entity.a.a(location.getX(), location.getY(), location.getZ(), location.getYaw(), location.getPitch());
newWorld.manager.a(entity);
}
}
@@ -181,7 +179,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
}
public boolean isSneaking() {
return entity.J();
return entity.U();
}
public void updateInventory() {