Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Commit

Permalink
Clean BlockPlacer even more on world change #24
Browse files Browse the repository at this point in the history
  • Loading branch information
3arthqu4ke authored Apr 4, 2024
1 parent 4246f52 commit c1c528a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/java/me/earth/phobot/services/BlockPlacer.java
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,12 @@ public void onEvent(PostMotionPlayerUpdateEvent event, LocalPlayer player, Clien
}
});

ResetUtil.onRespawnOrWorldChange(this, minecraft, () -> crystal = null);
ResetUtil.onRespawnOrWorldChange(this, minecraft, () -> {
collisionContext = CollisionContext.empty();
actions.clear();
customBlockStateLevel = null;
crystal = null;
});
}

public void addAction(Action action) {
Expand Down

0 comments on commit c1c528a

Please sign in to comment.