mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-05 14:51:34 +08:00
SPIGOT-6061: NPE in CraftBlockTag.getHandle()
This commit is contained in:
parent
9c9fb593f5
commit
62761be294
@ -20,6 +20,10 @@ public abstract class CraftTag<N, B extends Keyed> implements Tag<B> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected net.minecraft.server.Tag<N> getHandle() {
|
protected net.minecraft.server.Tag<N> getHandle() {
|
||||||
|
if (handle == null) {
|
||||||
|
handle = registry.b(tag);
|
||||||
|
}
|
||||||
|
|
||||||
return handle;
|
return handle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user