This is why people should read over code :))

This commit is contained in:
Myles 2016-03-21 19:13:55 +00:00
parent b226e94981
commit 7d3e6bc7cb

View File

@ -42,8 +42,8 @@ public class EntityPackets {
public Void transform(PacketWrapper wrapper, Boolean inputValue) throws Exception { public Void transform(PacketWrapper wrapper, Boolean inputValue) throws Exception {
EntityTracker tracker = wrapper.user().get(EntityTracker.class); EntityTracker tracker = wrapper.user().get(EntityTracker.class);
if (!inputValue) { if (!inputValue) {
int passenger = wrapper.get(Type.VAR_INT, 0); int passenger = wrapper.get(Type.INT, 0);
int vehicle = wrapper.get(Type.VAR_INT, 1); int vehicle = wrapper.get(Type.INT, 1);
wrapper.cancel(); // Don't send current packet wrapper.cancel(); // Don't send current packet