From d101d3c98e593d6f9d09349900ccca9ded30b915 Mon Sep 17 00:00:00 2001 From: Guus Lieben Date: Sat, 3 Jul 2021 18:57:21 +0200 Subject: [PATCH] Fix typo in ItemStackData --- .../common/data/provider/item/stack/ItemStackData.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/spongepowered/common/data/provider/item/stack/ItemStackData.java b/src/main/java/org/spongepowered/common/data/provider/item/stack/ItemStackData.java index 8bdc48f2a93..d6db7601f2d 100644 --- a/src/main/java/org/spongepowered/common/data/provider/item/stack/ItemStackData.java +++ b/src/main/java/org/spongepowered/common/data/provider/item/stack/ItemStackData.java @@ -150,8 +150,8 @@ public static void register(final DataProviderRegistrator registrator) { } return tag.getBoolean(Constants.Item.ITEM_UNBREAKABLE); }) - .set(ItemStackData::setIsUnbrekable) - .delete(h -> ItemStackData.setIsUnbrekable(h, false)) + .set(ItemStackData::setIsUnbreakable) + .delete(h -> ItemStackData.setIsUnbreakable(h, false)) .create(Keys.LORE) .get(h -> { final CompoundTag tag = h.getTag(); @@ -204,7 +204,7 @@ public static void register(final DataProviderRegistrator registrator) { } // @formatter:on - private static void setIsUnbrekable(final ItemStack stack, final Boolean value) { + private static void setIsUnbreakable(final ItemStack stack, final Boolean value) { if (value == null || (!value && !stack.hasTag())) { return; }