This commit is contained in:
Jesse Boyd 2017-08-19 15:45:57 +10:00
parent 81ffd52e9f
commit d37e44e395
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F
2 changed files with 5 additions and 1 deletions

View File

@ -215,6 +215,10 @@ public class FaweBukkit implements IFawe, Listener {
Field URL = clazz.getDeclaredField("URL");
ReflectionUtils.setFailsafeFieldValue(URL, null, null);
} catch (NoSuchFieldError | IllegalAccessException ignore) {}
catch (Throwable e) {
Fawe.debug("Error linking metrics: " + instance);
e.printStackTrace();
}
}
} catch (NoSuchFieldException ignored) { }
});

View File

@ -2934,7 +2934,7 @@ public class EditSession extends AbstractWorld implements HasFaweQueue, Lighting
int yv = (int) (y.getValue() * unit.getY() + zero2.getY());
int zv = (int) (z.getValue() * unit.getZ() + zero2.getZ());
// read block from world
BaseBlock material = FaweCache.CACHE_BLOCK[queue.getCombinedId4DataDebug(xv, yv, zv, 0, EditSession.this)];
BaseBlock material = getLazyBlock(xv, yv, zv);
// queue operation
return setBlockFast(position, material);
} catch (EvaluationException e) {