Merge pull request #257 from HugoDaBosss/apiv2

Fix armorstands moving incorrectly when using relative movement packets (apiv2)
This commit is contained in:
Myles 2016-03-22 14:38:33 +00:00
commit c628a8a23f
1 changed files with 0 additions and 15 deletions

View File

@ -112,21 +112,6 @@ public class EntityPackets {
map(Type.BYTE); // 5 - Pitch
map(Type.BOOLEAN); // 6 - On Ground
handler(new PacketHandler() {
@Override
public void handle(PacketWrapper wrapper) throws Exception {
int entityID = wrapper.get(Type.VAR_INT, 0);
if (((ViaVersionPlugin) ViaVersion.getInstance()).isHologramPatch()) {
EntityTracker tracker = wrapper.user().get(EntityTracker.class);
if (tracker.getKnownHolograms().contains(entityID)) {
Short newValue = wrapper.get(Type.SHORT, 1);
newValue = (short) (newValue + (((ViaVersionPlugin) ViaVersion.getInstance()).getHologramYOffset()));
wrapper.set(Type.SHORT, 1, newValue);
}
}
}
});
}
});
// Entity Relative Move Packet