mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-30 20:21:41 +01:00
Sped up teleporting even more, + fixed isSneaking
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
1729498173
commit
93b688f5bf
@ -170,9 +170,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
|||||||
entity.a.e = newEntity;
|
entity.a.e = newEntity;
|
||||||
entity = newEntity;
|
entity = newEntity;
|
||||||
} else {
|
} else {
|
||||||
oldWorld.manager.b(entity);
|
|
||||||
entity.a.a(location.getX(), location.getY(), location.getZ(), location.getYaw(), location.getPitch());
|
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() {
|
public boolean isSneaking() {
|
||||||
return entity.J();
|
return entity.U();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void updateInventory() {
|
public void updateInventory() {
|
||||||
|
Loading…
Reference in New Issue
Block a user