From e99536bb694db0a469438ff17637b96d86737ea6 Mon Sep 17 00:00:00 2001 From: Rutger Kok Date: Sat, 28 Apr 2018 15:57:34 +0200 Subject: [PATCH] Map WEARABLE enchantment target BREAKABLE at least includes everything that WEARABLE also includes, I think. --- .../rutgerkok/pokkit/enchantment/PokkitEnchantmentTarget.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/nl/rutgerkok/pokkit/enchantment/PokkitEnchantmentTarget.java b/src/main/java/nl/rutgerkok/pokkit/enchantment/PokkitEnchantmentTarget.java index 82e99d5..72d96c5 100644 --- a/src/main/java/nl/rutgerkok/pokkit/enchantment/PokkitEnchantmentTarget.java +++ b/src/main/java/nl/rutgerkok/pokkit/enchantment/PokkitEnchantmentTarget.java @@ -25,6 +25,9 @@ public class PokkitEnchantmentTarget { twoWay(EnchantmentType.DIGGER, EnchantmentTarget.TOOL); twoWay(EnchantmentType.FISHING_ROD, EnchantmentTarget.FISHING_ROD); twoWay(EnchantmentType.SWORD, EnchantmentTarget.WEAPON); + + // For WEARABLE, no suitable Nukkit target exists yet + bukkitToNukkit.put(EnchantmentTarget.WEARABLE, EnchantmentType.BREAKABLE); } /**