Skip to content

Commit

Permalink
Merge pull request #147 from huskcasaca/fix-pattern-disabled-when-swi…
Browse files Browse the repository at this point in the history
…tch-build-mode

Fix pattern disabled when update build mode
  • Loading branch information
huskcasaca authored Jun 5, 2024
2 parents 35e3749 + 14fc962 commit 660abcc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ public boolean setStructure(Player player, Structure structure) {
updateContext(player, context -> context.withNoInteraction().withStructure(structure).withEmptyClipboard());
if (structure.getMode().isDisabled()) {
getEntrance().getClientManager().getTooltipRenderer().hideAllEntries(false);
updateContext(player, context -> context.withPattern(context.pattern().withEnabled(false)));
updateContext(player, context -> context);
}
return true;
}
Expand Down

0 comments on commit 660abcc

Please sign in to comment.