1
0
Fork 0
mirror of https://github.com/PaperMC/Paper.git synced 2025-02-19 11:39:50 +01:00
PaperMC/paper-api
MrPowerGamerBR 41ca517939 Remove unnecessary durability check in "ItemStack#isSimilar(...)"
By removing this check we avoid unnecessarily allocating useless `ItemMeta` objects if we are comparing two items, or one of the two items, that don't have any durability. Don't worry, the durability of the item is checked when it checks if both item metas are equal.

This is a leftover from when checking for the item's durability was "free" because the durability was stored in the `ItemStack` itself, this [was changed in Minecraft 1.13](f8b2086d60 (src)/main/java/org/bukkit/inventory/ItemStack.java).
2023-11-26 20:00:50 -03:00
..
src Remove unnecessary durability check in "ItemStack#isSimilar(...)" 2023-11-26 20:00:50 -03:00
.gitignore Convert project to Gradle 2020-12-10 20:50:33 -08:00
build.gradle.kts Allow plugins to use SLF4J for logging 2017-09-21 16:33:12 +02:00
LICENCE.txt We're GPL. 2011-01-02 10:57:42 +01:00