Removed build artifacts from repo tree. + Hotfix of useEnchantment not ignoring items with no meta on whitelist mode.
This commit is contained in:
parent
c098040e33
commit
41af1fc1cf
58 changed files with 7 additions and 221 deletions
|
|
@ -16,7 +16,7 @@ public class useEnchantment implements NodeHandler {
|
|||
public boolean allows(HumanEntity entity, PolicyNode node, Action action) {
|
||||
ItemStack item = entity.getInventory().getItemInMainHand();
|
||||
if (item.getItemMeta() == null) {
|
||||
return true;
|
||||
return !node.isWhitelist();
|
||||
}
|
||||
|
||||
Map<Enchantment, Integer> enchants = item.getItemMeta().getEnchants();
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
name: "Eye-of-Nemesis"
|
||||
version: '1.0-SNAPSHOT'
|
||||
version: '1.0.1-SNAPSHOT'
|
||||
main: io.github.adrianvic.nemesiseye.Nemesis
|
||||
api-version: '1.21'
|
||||
author: 'Adrian Victor'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue