Minor code refactoring

This commit is contained in:
CrushedPixel
2015-05-05 10:52:18 +02:00
parent 36eab58705
commit aeb8f5c0cb
3 changed files with 11 additions and 2 deletions

View File

@@ -76,6 +76,7 @@ public class ReplaySender extends ChannelInboundHandlerAdapter {
joinPacketDimension, joinPacketDifficulty, joinPacketMaxPlayers;
private Field effectPacketEntityId;
private Field metadataPacketEntityId, metadataPacketList;
private Field objectTypeField;
private Minecraft mc = Minecraft.getMinecraft();
private int replayLength = 0;
private int actualID = -1;
@@ -344,6 +345,14 @@ public class ReplaySender extends ChannelInboundHandlerAdapter {
if(hurryToTimestamp && (!ReplayHandler.isInPath() || (desiredTimeStamp - currentTimeStamp > 1000))) {
if(p instanceof S45PacketTitle ||
p instanceof S2APacketParticles) return;
if(p instanceof S0EPacketSpawnObject) {
S0EPacketSpawnObject pso = (S0EPacketSpawnObject)p;
int type = pso.func_148993_l();
if(type == 76) {
return;
}
}
}
if(p instanceof S29PacketSoundEffect && ReplayHandler.isInPath() && ReplayProcess.isVideoRecording()) {