Redirect S19PacketEntityStatus to the Replay Player's entityID in ReplaySender

Removed unnecessary Event Listeners in RecordingHandler that injected S19PacketEntityStatus whenever the Player was damaged or died
This commit is contained in:
CrushedPixel
2015-08-14 16:26:25 +02:00
parent 130e45a33a
commit 599aa2cf53
3 changed files with 8 additions and 61 deletions

View File

@@ -325,6 +325,13 @@ public class ReplaySender extends ChannelInboundHandlerAdapter {
}
}
if(p instanceof S19PacketEntityStatus) {
S19PacketEntityStatus packet = (S19PacketEntityStatus)p;
if(packet.field_149164_a == actualID) {
packet.field_149164_a = RecordingHandler.entityID;
}
}
if(p instanceof S01PacketJoinGame) {
S01PacketJoinGame packet = (S01PacketJoinGame) p;
allowMovement = true;