Merge pull request #1291 from KennyTV/master

Fix oversight in last pr
This commit is contained in:
Myles 2019-04-25 22:52:47 +01:00 committed by GitHub
commit b5944f66a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,7 +39,7 @@ public class ConnectionData {
ConnectionHandler handler = connectionHandlerMap.get(blockState);
if (handler == null) continue;
int newBlockState = handler.connect(user, position, blockState);
int newBlockState = handler.connect(user, pos, blockState);
PacketWrapper blockUpdatePacket = new PacketWrapper(0x0B, null, user);
blockUpdatePacket.write(Type.POSITION, pos);
blockUpdatePacket.write(Type.VAR_INT, newBlockState);