mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-23 18:55:14 +01:00
Fix block state NBT encoding
This commit is contained in:
parent
d77a9c76da
commit
74f46cd8fe
@ -169,12 +169,15 @@ public class ChunkSnapshot
|
||||
CompoundTag prop = tc.getCompound("Properties");
|
||||
for (String pid : prop.getAllKeys()) {
|
||||
if (statestr.length() > 0) statestr.append(',');
|
||||
statestr.append(pid).append('=').append(prop.get(pid).toString());
|
||||
statestr.append(pid).append('=').append(prop.get(pid).getAsString());
|
||||
}
|
||||
palette[pi] = DynmapBlockState.getStateByNameAndState(pname, statestr.toString());
|
||||
//Log.info("getStateByNameAndState(" + pname + "," + statestr.toString() + ")=" + palette[pi]);
|
||||
//if (pname.contains("grass_block")) { Log.info("getStateByNameAndState(" + pname + "," + statestr.toString() + ")=" + palette[pi]); }
|
||||
}
|
||||
if (palette[pi] == null) {
|
||||
palette[pi] = DynmapBlockState.getBaseStateByName(pname);
|
||||
//if (pname.contains("grass_block")) { Log.info("getBaseStateByName(" + pname + ")=" + palette[pi]); }
|
||||
}
|
||||
if (palette[pi] == null) {
|
||||
palette[pi] = DynmapBlockState.AIR;
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user