Unload old world when restarting replay, fixes floating heads

This commit is contained in:
Jonas Herzig
2018-03-03 09:50:13 +01:00
parent 5d9dc9eb95
commit 9c76f0fcc0

View File

@@ -95,6 +95,12 @@ public class ReplayHandler {
void restartedReplay() {
channel.close();
// Force re-creation of camera entity by unloading the previous world
mc.addScheduledTask(() -> {
mc.setIngameNotInFocus();
mc.loadWorld(null);
});
restrictions = new Restrictions();
setup();