Skip to content

Commit

Permalink
Stop linking when changing modes, closes #50
Browse files Browse the repository at this point in the history
  • Loading branch information
Buuz135 committed Jul 9, 2022
1 parent b2bbb86 commit cc73acf
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ public InteractionResultHolder<ItemStack> use(Level p_41432_, Player player, Int
stack.getOrCreateTag().putString(NBT_MODE, LinkingMode.SINGLE.name());
player.displayClientMessage(new TextComponent("Swapped mode to " + LinkingMode.SINGLE.name().toLowerCase(Locale.ROOT)).setStyle(Style.EMPTY.withColor(LinkingMode.SINGLE.getColor())), true);
}
stack.getOrCreateTag().remove(NBT_FIRST);
} else {
ActionMode linkingMode = getActionMode(stack);
if (linkingMode == ActionMode.ADD) {
Expand Down

0 comments on commit cc73acf

Please sign in to comment.