Fix chest rendering (block state case problem)

This commit is contained in:
Mike Primm 2020-08-20 21:42:25 -05:00
parent 6e35b7e872
commit 19949528a0
2 changed files with 3 additions and 3 deletions

View File

@ -853,7 +853,7 @@ layer:3,4
--****--
# Chest - single or double
# Trap Chest - single or double
customblock:id=chest,id=trapped_chest,class=org.dynmap.hdmap.renderer.ChestStateRenderer
customblock:id=chest,id=trapped_chest,class=org.dynmap.hdmap.renderer.ChestStateRenderer,doublechest=true
# Cake Block
block:id=cake,scale=16

View File

@ -133,7 +133,7 @@ public class DynmapBlockState {
}
base.states[stateidx] = this;
}
stateList = stateName.split(",");
stateList = stateName.toLowerCase().split(",");
// If base block state, add to map
if (base == this) {
blocksByName.put(blkname, this);
@ -232,7 +232,7 @@ public class DynmapBlockState {
DynmapBlockState blk = getBaseStateByName(name);
if (blk != null) {
if (blk.states != null) {
String[] statelist = statename.split(",");
String[] statelist = statename.toLowerCase().split(",");
for (DynmapBlockState bb : blk.states) {
boolean match = true;
for (int i = 0; i < statelist.length; i++) {