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 {
|
try {
|
||||||
channelInactive(ctx);
|
channelInactive(ctx);
|
||||||
ctx.channel().pipeline().close();
|
ctx.channel().pipeline().close();
|
||||||
|
FileUtils.deleteDirectory(tempResourcePackFolder);
|
||||||
} catch(Exception e) {
|
} catch(Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
@@ -490,12 +491,6 @@ public class ReplaySender extends ChannelInboundHandlerAdapter {
|
|||||||
super.channelActive(ctx);
|
super.channelActive(ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void channelInactive(ChannelHandlerContext ctx) throws Exception {
|
|
||||||
FileUtils.deleteDirectory(tempResourcePackFolder);
|
|
||||||
super.channelInactive(ctx);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Whether the replay is currently paused.
|
* Whether the replay is currently paused.
|
||||||
* @return {@code true} if it is paused, {@code false} otherwise
|
* @return {@code true} if it is paused, {@code false} otherwise
|
||||||
|
|||||||
Reference in New Issue
Block a user