Stop linking when changing modes, closes #50

This commit is contained in:
Buuz135 2022-07-09 18:08:45 +02:00
parent b2bbb867b5
commit cc73acfa0e

View File

@ -202,6 +202,7 @@ public class LinkingToolItem extends BasicItem {
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) {