Stop linking when changing modes, closes #50
This commit is contained in:
parent
b2bbb867b5
commit
cc73acfa0e
|
@ -202,6 +202,7 @@ public class LinkingToolItem extends BasicItem {
|
||||||
stack.getOrCreateTag().putString(NBT_MODE, LinkingMode.SINGLE.name());
|
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);
|
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 {
|
} else {
|
||||||
ActionMode linkingMode = getActionMode(stack);
|
ActionMode linkingMode = getActionMode(stack);
|
||||||
if (linkingMode == ActionMode.ADD) {
|
if (linkingMode == ActionMode.ADD) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user