mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-30 22:24:06 +01:00
Put in some protextion logic for apparently broken SpoutPlugin
This commit is contained in:
parent
c8b1f71949
commit
34712e27f0
@ -115,7 +115,12 @@ public class SpoutPluginBlocks {
|
|||||||
/* Loop through blocks - try to freshen files, if needed */
|
/* Loop through blocks - try to freshen files, if needed */
|
||||||
for(CustomBlock b : cb) {
|
for(CustomBlock b : cb) {
|
||||||
BlockDesign bd = b.getBlockDesign();
|
BlockDesign bd = b.getBlockDesign();
|
||||||
String blkid = bd.getTexturePlugin() + "." + fixIDString(b.getName());
|
if(bd == null) continue;
|
||||||
|
String txtplug = bd.getTexturePlugin();
|
||||||
|
if(txtplug == null) continue;
|
||||||
|
String blkname = b.getName();
|
||||||
|
if(blkname == null) continue;
|
||||||
|
String blkid = txtplug + "." + fixIDString(blkname);
|
||||||
/* If not GenericCubiodBlockDesign, we don't handle it */
|
/* If not GenericCubiodBlockDesign, we don't handle it */
|
||||||
if((bd instanceof GenericCuboidBlockDesign) == false) {
|
if((bd instanceof GenericCuboidBlockDesign) == false) {
|
||||||
Log.info("Block " + blkid + " not suppored - only cubiod blocks");
|
Log.info("Block " + blkid + " not suppored - only cubiod blocks");
|
||||||
|
Loading…
Reference in New Issue
Block a user