mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-27 01:05:38 +00:00
Resolves FS-338
This commit is contained in:
parent
eadbc504e5
commit
20f341ea45
@ -251,9 +251,7 @@ public class Command_enchant extends FreedomCommand
|
|||||||
return getEnchantments(item);
|
return getEnchantments(item);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (args.length == 3)
|
else if (args.length == 3 && args[0].equals("add"))
|
||||||
{
|
|
||||||
if (args[0].equals("add"))
|
|
||||||
{
|
{
|
||||||
Enchantment enchantment = Enchantment.getByName(args[1].toUpperCase());
|
Enchantment enchantment = Enchantment.getByName(args[1].toUpperCase());
|
||||||
if (enchantment != null)
|
if (enchantment != null)
|
||||||
@ -268,7 +266,6 @@ public class Command_enchant extends FreedomCommand
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return Collections.emptyList();
|
return Collections.emptyList();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user