Skip to content

Commit b9a98c8

Browse files
committed
Java 7 support
1 parent 0b554be commit b9a98c8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

proxy/src/main/java/net/md_5/bungee/entitymap/EntityMap_1_8.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,11 @@ public void rewriteClientbound(ByteBuf packet, int oldId, int newId)
109109

110110
if ( readId > 0 && changedId <= 0 )
111111
{
112-
packet.writerIndex( packet.writerIndex() - 3 * Short.BYTES );
112+
packet.writerIndex( packet.writerIndex() - 6 );
113113
} else if ( changedId > 0 && readId <= 0 )
114114
{
115115
packet.ensureWritable( 6 );
116-
packet.writerIndex( packet.writerIndex() + 3 * Short.BYTES );
117-
116+
packet.writerIndex( packet.writerIndex() + 6 );
118117
}
119118
}
120119
} else if ( packetId == 0x0C /* Spawn Player */ )

0 commit comments

Comments
 (0)