Fix resource packs not working after first time jumping back in time
This commit is contained in:
@@ -242,6 +242,7 @@ public class ReplaySender extends ChannelInboundHandlerAdapter {
|
||||
try {
|
||||
channelInactive(ctx);
|
||||
ctx.channel().pipeline().close();
|
||||
FileUtils.deleteDirectory(tempResourcePackFolder);
|
||||
} catch(Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
@@ -490,12 +491,6 @@ public class ReplaySender extends ChannelInboundHandlerAdapter {
|
||||
super.channelActive(ctx);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void channelInactive(ChannelHandlerContext ctx) throws Exception {
|
||||
FileUtils.deleteDirectory(tempResourcePackFolder);
|
||||
super.channelInactive(ctx);
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether the replay is currently paused.
|
||||
* @return {@code true} if it is paused, {@code false} otherwise
|
||||
|
||||
Reference in New Issue
Block a user