summaryrefslogtreecommitdiffstats
path: root/nms-patches/EntityPlayer.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/EntityPlayer.patch')
-rw-r--r--nms-patches/EntityPlayer.patch18
1 files changed, 17 insertions, 1 deletions
diff --git a/nms-patches/EntityPlayer.patch b/nms-patches/EntityPlayer.patch
index cfe55347..e1d1c6f2 100644
--- a/nms-patches/EntityPlayer.patch
+++ b/nms-patches/EntityPlayer.patch
@@ -583,11 +583,27 @@
+ PlayerLocaleChangeEvent event = new PlayerLocaleChangeEvent(getBukkitEntity(), packetplayinsettings.b());
+ this.server.server.getPluginManager().callEvent(event);
+ }
-+ this.clientViewDistance = packetplayinsettings.b;
++ this.clientViewDistance = packetplayinsettings.viewDistance;
+ // CraftBukkit end
this.locale = packetplayinsettings.b();
this.cs = packetplayinsettings.d();
this.ct = packetplayinsettings.e();
+@@ -1023,13 +1285,13 @@
+ if (entity instanceof EntityHuman) {
+ this.playerConnection.sendPacket(new PacketPlayOutEntityDestroy(new int[] { entity.getId()}));
+ } else {
+- this.removeQueue.add(entity.getId());
++ this.removeQueue.add((Integer) entity.getId()); // CraftBukkit - decompile error
+ }
+
+ }
+
+ public void d(Entity entity) {
+- this.removeQueue.remove(entity.getId());
++ this.removeQueue.remove((Integer) entity.getId()); // CraftBukkit - decompile error
+ }
+
+ protected void C() {
@@ -1053,7 +1315,7 @@
this.cv = (Entity) (entity == null ? this : entity);
if (entity1 != this.cv) {