Is issue #268 happy with this? Fixes falling blocks velocities. Maybe.
This commit is contained in:
parent
d971ad5380
commit
8d0aa545c1
@ -793,6 +793,7 @@ public class PacketsManager {
|
|||||||
packetsToListen.add(Server.ENTITY_HEAD_ROTATION);
|
packetsToListen.add(Server.ENTITY_HEAD_ROTATION);
|
||||||
packetsToListen.add(Server.ENTITY_TELEPORT);
|
packetsToListen.add(Server.ENTITY_TELEPORT);
|
||||||
packetsToListen.add(Server.REL_ENTITY_MOVE);
|
packetsToListen.add(Server.REL_ENTITY_MOVE);
|
||||||
|
packetsToListen.add(Server.ENTITY_VELOCITY);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add equipment packet
|
// Add equipment packet
|
||||||
@ -1113,6 +1114,13 @@ public class PacketsManager {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If the entity is sending velocity and its a falling block
|
||||||
|
else if (sentPacket.getType() == Server.ENTITY_VELOCITY) {
|
||||||
|
if (disguise.getType() == DisguiseType.FALLING_BLOCK) {
|
||||||
|
packets.clear();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// If the entity is rotating his head
|
// If the entity is rotating his head
|
||||||
else if (sentPacket.getType() == Server.ENTITY_HEAD_ROTATION) {
|
else if (sentPacket.getType() == Server.ENTITY_HEAD_ROTATION) {
|
||||||
if (disguise.getType().isPlayer() && entity.getType() != EntityType.PLAYER) {
|
if (disguise.getType().isPlayer() && entity.getType() != EntityType.PLAYER) {
|
||||||
|
Loading…
Reference in New Issue
Block a user