SPIGOT-6061: NPE in CraftBlockTag.getHandle()

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2020-08-12 08:44:09 +10:00
parent 6a9e00d4b6
commit 21a3b67be9

View file

@ -20,6 +20,10 @@ public abstract class CraftTag<N, B extends Keyed> implements Tag<B> {
}
protected net.minecraft.server.Tag<N> getHandle() {
if (handle == null) {
handle = registry.b(tag);
}
return handle;
}