Compiling version (some features are currently disabled and need a rewrite)
This commit is contained in:
parent
b1f4173ce4
commit
f8bcba4d3a
48 changed files with 488 additions and 506 deletions
|
@ -1,6 +1,8 @@
|
|||
package org.betterx.bclib.util;
|
||||
|
||||
import net.minecraft.core.BlockPos;
|
||||
import net.minecraft.core.HolderLookup;
|
||||
import net.minecraft.core.Registry;
|
||||
import net.minecraft.core.Vec3i;
|
||||
import net.minecraft.nbt.CompoundTag;
|
||||
import net.minecraft.nbt.NbtIo;
|
||||
|
@ -67,7 +69,7 @@ public class StructureHelper {
|
|||
CompoundTag nbttagcompound = NbtIo.readCompressed(stream);
|
||||
|
||||
StructureTemplate template = new StructureTemplate();
|
||||
template.load(nbttagcompound);
|
||||
template.load(HolderLookup.forRegistry(Registry.BLOCK), nbttagcompound);
|
||||
|
||||
return template;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue