Unload old world when restarting replay, fixes floating heads
This commit is contained in:
@@ -95,6 +95,12 @@ public class ReplayHandler {
|
|||||||
void restartedReplay() {
|
void restartedReplay() {
|
||||||
channel.close();
|
channel.close();
|
||||||
|
|
||||||
|
// Force re-creation of camera entity by unloading the previous world
|
||||||
|
mc.addScheduledTask(() -> {
|
||||||
|
mc.setIngameNotInFocus();
|
||||||
|
mc.loadWorld(null);
|
||||||
|
});
|
||||||
|
|
||||||
restrictions = new Restrictions();
|
restrictions = new Restrictions();
|
||||||
|
|
||||||
setup();
|
setup();
|
||||||
|
|||||||
Reference in New Issue
Block a user