Fix chest rendering (block state case problem)

This commit is contained in:
Mike Primm 2020-08-20 21:42:25 -05:00
parent 763522cf71
commit ab43a79b78
2 changed files with 3 additions and 3 deletions

View file

@ -853,7 +853,7 @@ layer:3,4
--****-- --****--
# Chest - single or double # Chest - single or double
# Trap 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 # Cake Block
block:id=cake,scale=16 block:id=cake,scale=16

View file

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