mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-27 12:45:59 +01:00
Fix chest rendering (block state case problem)
This commit is contained in:
parent
6e35b7e872
commit
19949528a0
@ -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
|
||||
|
@ -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++) {
|
||||
|
Loading…
Reference in New Issue
Block a user