Skip to content

Commit

Permalink
Origins: Fix #316
Browse files Browse the repository at this point in the history
  • Loading branch information
MerchantPug committed Jul 24, 2023
1 parent a587b4c commit 8e4cd4c
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,12 @@ public static void playerClone(PlayerEvent.Clone event) {
event.getOriginal().invalidateCaps(); // Unload capabilities.
}

@SubscribeEvent
public static void playerChangedDimensions(PlayerEvent.PlayerChangedDimensionEvent event) {
if (event.getEntity() instanceof ServerPlayer)
IOriginContainer.get(event.getEntity()).ifPresent(IOriginContainer::synchronize);
}

@SubscribeEvent
public static void onPlayerTickEnd(TickEvent.PlayerTickEvent event) {
if (event.phase == TickEvent.Phase.END) {
Expand Down

0 comments on commit 8e4cd4c

Please sign in to comment.