mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 03:43:40 +01:00
SPIGOT-6061: NPE in CraftBlockTag.getHandle()
By: md_5 <git@md-5.net>
This commit is contained in:
parent
6a9e00d4b6
commit
21a3b67be9
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue