diff options
author | Bjarne Koll <[email protected]> | 2024-05-31 17:51:21 +0200 |
---|---|---|
committer | Bjarne Koll <[email protected]> | 2024-05-31 17:51:21 +0200 |
commit | 4e0caf1f71397f92bcc3183e448207f9a9cb83ea (patch) | |
tree | 3029bab79664d87516fcb241405ff179b834f724 | |
parent | 6f33a8db6764a4288b291e278445db6d2e63c627 (diff) | |
download | Paper-4e0caf1f71397f92bcc3183e448207f9a9cb83ea.tar.gz Paper-4e0caf1f71397f92bcc3183e448207f9a9cb83ea.zip |
Formatting issues
-rw-r--r-- | patches/server/0788-ItemStack-damage-API.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/patches/server/0788-ItemStack-damage-API.patch b/patches/server/0788-ItemStack-damage-API.patch index b43dbbac64..56878ff17e 100644 --- a/patches/server/0788-ItemStack-damage-API.patch +++ b/patches/server/0788-ItemStack-damage-API.patch @@ -11,7 +11,7 @@ the logic associated with damaging them public net.minecraft.world.entity.LivingEntity entityEventForEquipmentBreak(Lnet/minecraft/world/entity/EquipmentSlot;)B diff --git a/src/main/java/net/minecraft/world/item/ItemStack.java b/src/main/java/net/minecraft/world/item/ItemStack.java -index acce1b72185d4687ef5a72dd4014d87149f4b092..3883145d37af7bdf5c8d7f81c93a4acf4bd2b3cb 100644 +index acce1b72185d4687ef5a72dd4014d87149f4b092..ee0e08be375234e003675b19c5b77b9249f5c355 100644 --- a/src/main/java/net/minecraft/world/item/ItemStack.java +++ b/src/main/java/net/minecraft/world/item/ItemStack.java @@ -713,7 +713,13 @@ public final class ItemStack implements DataComponentHolder { @@ -20,8 +20,8 @@ index acce1b72185d4687ef5a72dd4014d87149f4b092..3883145d37af7bdf5c8d7f81c93a4acf } + // Paper start - ItemStack damage API - split hurtAndBreak to skip pre-checks like creative mode + } - + } + + public void hurtAndBreakWithoutChecks(int amount, LivingEntity entity, @org.checkerframework.checker.nullness.qual.Nullable EquipmentSlot slot) { + { + // Paper end - ItemStack damage API - split hurtAndBreak to skip pre-checks like creative mode |