mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-09-27 21:32:35 +02:00
Forge fixes
This commit is contained in:
parent
5dd7abaddb
commit
5f13c8f74f
@ -176,7 +176,13 @@ public class DynmapPlugin
|
||||
for (int m = 1; m < 16; m++) {
|
||||
DynmapBlockState bs = new DynmapBlockState(basebs, m, bn, "meta=" + m);
|
||||
stateByID[(i << 4) + m] = bs;
|
||||
IBlockState blkstate = b.getStateFromMeta(m);
|
||||
IBlockState blkstate = null;
|
||||
try {
|
||||
blkstate = b.getStateFromMeta(m);
|
||||
} catch (Exception x) {
|
||||
// Invalid meta
|
||||
}
|
||||
if (blkstate != null) {
|
||||
Material mat = blkstate.getMaterial();
|
||||
if (mat.isSolid()) {
|
||||
bs.setSolid();
|
||||
@ -194,10 +200,11 @@ public class DynmapPlugin
|
||||
}
|
||||
}
|
||||
}
|
||||
for (int gidx = 0; gidx < DynmapBlockState.getGlobalIndexMax(); gidx++) {
|
||||
DynmapBlockState bs = DynmapBlockState.getStateByGlobalIndex(gidx);
|
||||
Log.info(gidx + ":" + bs.toString() + ", gidx=" + bs.globalStateIndex + ", sidx=" + bs.stateIndex);
|
||||
}
|
||||
//for (int gidx = 0; gidx < DynmapBlockState.getGlobalIndexMax(); gidx++) {
|
||||
// DynmapBlockState bs = DynmapBlockState.getStateByGlobalIndex(gidx);
|
||||
// Log.verboseinfo(gidx + ":" + bs.toString() + ", gidx=" + bs.globalStateIndex + ", sidx=" + bs.stateIndex);
|
||||
//}
|
||||
}
|
||||
|
||||
public static final int getBlockID(World w, int x, int y, int z) {
|
||||
|
@ -176,7 +176,13 @@ public class DynmapPlugin
|
||||
for (int m = 1; m < 16; m++) {
|
||||
DynmapBlockState bs = new DynmapBlockState(basebs, m, bn, "meta=" + m);
|
||||
stateByID[(i << 4) + m] = bs;
|
||||
IBlockState blkstate = b.getStateFromMeta(m);
|
||||
IBlockState blkstate = null;
|
||||
try {
|
||||
blkstate = b.getStateFromMeta(m);
|
||||
} catch (Exception x) {
|
||||
// Bad metadata
|
||||
}
|
||||
if (blkstate != null) {
|
||||
Material mat = blkstate.getMaterial();
|
||||
if (mat.isSolid()) {
|
||||
bs.setSolid();
|
||||
@ -194,10 +200,11 @@ public class DynmapPlugin
|
||||
}
|
||||
}
|
||||
}
|
||||
for (int gidx = 0; gidx < DynmapBlockState.getGlobalIndexMax(); gidx++) {
|
||||
DynmapBlockState bs = DynmapBlockState.getStateByGlobalIndex(gidx);
|
||||
Log.info(gidx + ":" + bs.toString() + ", gidx=" + bs.globalStateIndex + ", sidx=" + bs.stateIndex);
|
||||
}
|
||||
//for (int gidx = 0; gidx < DynmapBlockState.getGlobalIndexMax(); gidx++) {
|
||||
// DynmapBlockState bs = DynmapBlockState.getStateByGlobalIndex(gidx);
|
||||
// Log.verboseinfo(gidx + ":" + bs.toString() + ", gidx=" + bs.globalStateIndex + ", sidx=" + bs.stateIndex);
|
||||
//}
|
||||
}
|
||||
|
||||
public static final int getBlockID(World w, int x, int y, int z) {
|
||||
|
@ -176,7 +176,13 @@ public class DynmapPlugin
|
||||
for (int m = 1; m < 16; m++) {
|
||||
DynmapBlockState bs = new DynmapBlockState(basebs, m, bn, "meta=" + m);
|
||||
stateByID[(i << 4) + m] = bs;
|
||||
IBlockState blkstate = b.getStateFromMeta(m);
|
||||
IBlockState blkstate = null;
|
||||
try {
|
||||
blkstate = b.getStateFromMeta(m);
|
||||
} catch (Exception x) {
|
||||
// Invalid metadata
|
||||
}
|
||||
if (blkstate != null) {
|
||||
Material mat = blkstate.getMaterial();
|
||||
if (mat.isSolid()) {
|
||||
bs.setSolid();
|
||||
@ -194,10 +200,11 @@ public class DynmapPlugin
|
||||
}
|
||||
}
|
||||
}
|
||||
for (int gidx = 0; gidx < DynmapBlockState.getGlobalIndexMax(); gidx++) {
|
||||
DynmapBlockState bs = DynmapBlockState.getStateByGlobalIndex(gidx);
|
||||
Log.info(gidx + ":" + bs.toString() + ", gidx=" + bs.globalStateIndex + ", sidx=" + bs.stateIndex);
|
||||
}
|
||||
//for (int gidx = 0; gidx < DynmapBlockState.getGlobalIndexMax(); gidx++) {
|
||||
// DynmapBlockState bs = DynmapBlockState.getStateByGlobalIndex(gidx);
|
||||
// Log.verboseinfo(gidx + ":" + bs.toString() + ", gidx=" + bs.globalStateIndex + ", sidx=" + bs.stateIndex);
|
||||
//}
|
||||
}
|
||||
|
||||
public static final int getBlockID(World w, int x, int y, int z) {
|
||||
|
@ -195,10 +195,10 @@ public class DynmapPlugin
|
||||
}
|
||||
}
|
||||
}
|
||||
for (int gidx = 0; gidx < DynmapBlockState.getGlobalIndexMax(); gidx++) {
|
||||
DynmapBlockState bs = DynmapBlockState.getStateByGlobalIndex(gidx);
|
||||
Log.info(gidx + ":" + bs.toString() + ", gidx=" + bs.globalStateIndex + ", sidx=" + bs.stateIndex);
|
||||
}
|
||||
//for (int gidx = 0; gidx < DynmapBlockState.getGlobalIndexMax(); gidx++) {
|
||||
// DynmapBlockState bs = DynmapBlockState.getStateByGlobalIndex(gidx);
|
||||
// Log.verboseinfo(gidx + ":" + bs.toString() + ", gidx=" + bs.globalStateIndex + ", sidx=" + bs.stateIndex);
|
||||
//}
|
||||
}
|
||||
|
||||
public static final int getBlockID(World w, int x, int y, int z) {
|
||||
|
@ -176,7 +176,13 @@ public class DynmapPlugin
|
||||
for (int m = 1; m < 16; m++) {
|
||||
DynmapBlockState bs = new DynmapBlockState(basebs, m, bn, "meta=" + m);
|
||||
stateByID[(i << 4) + m] = bs;
|
||||
IBlockState blkstate = b.getStateFromMeta(m);
|
||||
IBlockState blkstate = null;
|
||||
try {
|
||||
blkstate = b.getStateFromMeta(m);
|
||||
} catch (Exception x) {
|
||||
// Invalid meta
|
||||
}
|
||||
if (blkstate != null) {
|
||||
Material mat = blkstate.getMaterial();
|
||||
if (mat.isSolid()) {
|
||||
bs.setSolid();
|
||||
@ -194,10 +200,11 @@ public class DynmapPlugin
|
||||
}
|
||||
}
|
||||
}
|
||||
for (int gidx = 0; gidx < DynmapBlockState.getGlobalIndexMax(); gidx++) {
|
||||
DynmapBlockState bs = DynmapBlockState.getStateByGlobalIndex(gidx);
|
||||
Log.info(gidx + ":" + bs.toString() + ", gidx=" + bs.globalStateIndex + ", sidx=" + bs.stateIndex);
|
||||
}
|
||||
//for (int gidx = 0; gidx < DynmapBlockState.getGlobalIndexMax(); gidx++) {
|
||||
// DynmapBlockState bs = DynmapBlockState.getStateByGlobalIndex(gidx);
|
||||
// Log.verboseinfo(gidx + ":" + bs.toString() + ", gidx=" + bs.globalStateIndex + ", sidx=" + bs.stateIndex);
|
||||
//}
|
||||
}
|
||||
|
||||
public static final int getBlockID(World w, int x, int y, int z) {
|
||||
|
Loading…
Reference in New Issue
Block a user