From b9a98c88ba5b901b81ddc07599a228709b51ecca Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 24 Apr 2016 11:39:23 +1000 Subject: [PATCH] Java 7 support --- .../main/java/net/md_5/bungee/entitymap/EntityMap_1_8.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/proxy/src/main/java/net/md_5/bungee/entitymap/EntityMap_1_8.java b/proxy/src/main/java/net/md_5/bungee/entitymap/EntityMap_1_8.java index 8e631930..4229fefa 100644 --- a/proxy/src/main/java/net/md_5/bungee/entitymap/EntityMap_1_8.java +++ b/proxy/src/main/java/net/md_5/bungee/entitymap/EntityMap_1_8.java @@ -109,12 +109,11 @@ class EntityMap_1_8 extends EntityMap if ( readId > 0 && changedId <= 0 ) { - packet.writerIndex( packet.writerIndex() - 3 * Short.BYTES ); + packet.writerIndex( packet.writerIndex() - 6 ); } else if ( changedId > 0 && readId <= 0 ) { packet.ensureWritable( 6 ); - packet.writerIndex( packet.writerIndex() + 3 * Short.BYTES ); - + packet.writerIndex( packet.writerIndex() + 6 ); } } } else if ( packetId == 0x0C /* Spawn Player */ )