Improve management of frequent real time updates

This commit is contained in:
s809
2023-09-26 22:03:17 +05:00
parent 723d171746
commit c6355f96a6
2 changed files with 5 additions and 1 deletions
@@ -45,6 +45,10 @@ public class ServerPlayerWrapper implements IServerPlayerWrapper
var position = serverPlayer.position();
return new Vec3d(position.x, position.y, position.z);
}
public int getViewDistance() {
return serverPlayer.server.getPlayerList().getViewDistance();
}
public Object getWrappedMcObject() {
return serverPlayer;