Skip to content

Commit

Permalink
fix: Fix getBoundWaystone using client data even on servers #778
Browse files Browse the repository at this point in the history
  • Loading branch information
BlayTheNinth committed Dec 17, 2023
1 parent 50e7348 commit e4defe2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public Optional<IWaystone> placeWarpPlate(Level level, BlockPos pos) {
@Override
public Optional<IWaystone> getBoundWaystone(ItemStack itemStack) {
if (itemStack.getItem() instanceof IAttunementItem attunementItem) {
return Optional.ofNullable(attunementItem.getWaystoneAttunedTo(null, itemStack));
return Optional.ofNullable(attunementItem.getWaystoneAttunedTo(Balm.getHooks().getServer(), itemStack));
}
return Optional.empty();
}
Expand Down

0 comments on commit e4defe2

Please sign in to comment.