mirror of
https://github.com/GTNewHorizons/BloodMagic.git
synced 2026-11-20 03:59:40 +00:00
1 parent
e75e9f778a
commit
9f2d0b5241
66 files changed
+731
-1429
No files matched your search
@@ -9,7 +9,6 @@ import net.minecraft.util.StatCollector;
|
||||
|
||||
import WayofTime.alchemicalWizardry.api.command.SubCommandBase;
|
||||
import WayofTime.alchemicalWizardry.api.items.interfaces.IBindable;
|
||||
import WayofTime.alchemicalWizardry.common.items.EnergyItems;
|
||||
|
||||
public class SubCommandBind extends SubCommandBase {
|
||||
|
||||
@@ -56,10 +55,10 @@ public class SubCommandBind extends SubCommandBase {
|
||||
}
|
||||
|
||||
if (bind) {
|
||||
EnergyItems.setItemOwner(held, playerName);
|
||||
IBindable.setItemOwner(held, playerName);
|
||||
commandSender.addChatMessage(new ChatComponentTranslation("commands.bind.success"));
|
||||
} else {
|
||||
if (!EnergyItems.getOwnerName(held).isEmpty()) {
|
||||
if (!IBindable.getOwnerName(held).isEmpty()) {
|
||||
held.stackTagCompound.removeTag("ownerName");
|
||||
commandSender.addChatMessage(new ChatComponentTranslation("commands.bind.remove.success"));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user