13
0
geforkt von Mirrors/Paper
Paper/paper-server
Josh Roy 933e2e1efa Remove CraftItemStack#setAmount null assignment
This creates a problem with Paper's item serialization
api where deserialized items, which are internally
created as a CraftItemStack, will be completely lost if
#setAmount(0) is invoked (since the underlying handle
is set to null), while a regular Bukkit ItemStack
simply sets the amount field to zero, retaining the
item's data.

Vanilla treats items with zero amounts the same as items
with less than zero amounts, so this code doesn't create
a problem with operations on the vanilla ItemStack.
2023-01-23 19:19:01 -05:00
..
patches/sources Correctly shrink items during EntityResurrectEvent 2023-01-10 21:06:42 +01:00
src Remove CraftItemStack#setAmount null assignment 2023-01-23 19:19:01 -05:00
.gitignore Setup Gradle project 2020-12-10 20:54:19 -08:00
build.gradle.kts Add support for Proxy Protocol 2022-04-07 16:13:39 +02:00
LGPL.txt We're LGPL. 2011-01-02 10:58:11 +01:00
LICENCE.txt We're LGPL. 2011-01-02 10:58:11 +01:00