PaperMC / Paper

The most widely used, high performance Minecraft server that aims to fix gameplay and mechanics inconsistencies
https://papermc.io/
Other
9.39k stars 2.2k forks source link

distinguish between null and empty map in API #10829

Open Machine-Maker opened 1 month ago

Machine-Maker commented 1 month ago

Since we distinguish between null and empty when applying attributes to an itemstack, we also have to make a distinction in the full map setter. Calling the setter with null, shouldn't create an empty attribute modifier map.