p0t4t0sandwich / TaterLib

A cross API code library that allows developers to write code that works across multiple modding platforms, and across a wide range of Minecraft versions, all with one JAR file. If TaterLib runs on it, so can your plugin/mod.
GNU General Public License v3.0
7 stars 1 forks source link

ItemStack abstraction wraps nulls and throws an error as a result #68

Closed p0t4t0sandwich closed 3 weeks ago

p0t4t0sandwich commented 3 months ago

Simulate minecraft:air as a way to fix this

p0t4t0sandwich commented 3 weeks ago

Note, older versions don't allow for an air item, they can just suffer with null exceptions, as the alternative is an exception of my own, or things silently failing.

Seems to be a 1.10 and below issue, I might revisit this at some point when TaterLib has it's own Items registry abstraction