Allow outside access of direct write for nbt blocks

This commit is contained in:
Daniel Mills 2021-01-10 04:57:12 -05:00
parent 0cd4997174
commit 3f5b799728

View File

@ -82,7 +82,7 @@ public class DirectWorldWriter {
return new File(worldFolder, "iris/mca-region/r." + x + "." + z + ".mca");
}
public BlockData getBlockData(CompoundTag tag) {
public static BlockData getBlockData(CompoundTag tag) {
if (tag == null)
{
return B.getAir();
@ -114,7 +114,7 @@ public class DirectWorldWriter {
return b;
}
public CompoundTag getCompound(BlockData blockData)
public static CompoundTag getCompound(BlockData blockData)
{
String data = blockData.getAsString(true);