mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-30 05:53:57 +01:00
This is why people should read over code :))
This commit is contained in:
parent
b226e94981
commit
7d3e6bc7cb
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user