Skip to content

Commit

Permalink
Fix unload events not running during reconfiguration
Browse files Browse the repository at this point in the history
  • Loading branch information
apple502j committed Oct 8, 2023
1 parent 44af70a commit f4c4e18
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ private void onGameJoin(GameJoinS2CPacket packet, CallbackInfo ci) {
}
}

// Called when the client disconnects from a server.
@Inject(method = "clearWorld", at = @At("HEAD"))
// Called when the client disconnects from a server or enters reconfiguration.
@Inject(method = "method_54134", at = @At("HEAD"))
private void onClearWorld(CallbackInfo ci) {
// If a world already exists, we need to unload all (block)entities in the world.
if (this.world != null) {
Expand Down

0 comments on commit f4c4e18

Please sign in to comment.