Fixed console spam
This commit is contained in:
parent
abb3864095
commit
143d7d63da
2 changed files with 8 additions and 4 deletions
|
@ -218,15 +218,15 @@ public abstract class TileEntityAbstractInterfaced extends TileEntityAbstractBas
|
|||
|
||||
// Return version
|
||||
public Object[] version() {
|
||||
WarpDrive.logger.info("Version is " + WarpDrive.VERSION + " isDev " + WarpDrive.isDev);
|
||||
if (WarpDriveConfig.LOGGING_LUA) {
|
||||
WarpDrive.logger.info("Version is " + WarpDrive.VERSION + " isDev " + WarpDrive.isDev);
|
||||
}
|
||||
String[] strings = WarpDrive.VERSION.split("-");
|
||||
WarpDrive.logger.info("strings size is " + strings.length);
|
||||
if (WarpDrive.isDev) {
|
||||
strings = strings[strings.length - 2].split("\\.");
|
||||
} else {
|
||||
strings = strings[strings.length - 1].split("\\.");
|
||||
}
|
||||
WarpDrive.logger.info("strings size is now " + strings.length);
|
||||
ArrayList<Integer> integers = new ArrayList<>(strings.length);
|
||||
for (String string : strings) {
|
||||
integers.add(Integer.parseInt(string));
|
||||
|
|
|
@ -217,6 +217,8 @@ public class LivingHandler {
|
|||
// 5 blocks high is motionY = -0.844
|
||||
// slime in the overworld falling from
|
||||
// 2.177279 blocks high is motionY -0.6517000126838683
|
||||
// spider in the overworld falling from
|
||||
// 3.346 blocks high is motionY -0.717
|
||||
|
||||
// cancel in case of very low speed
|
||||
final EntityLivingBase entity = event.entityLiving;
|
||||
|
@ -235,7 +237,9 @@ public class LivingHandler {
|
|||
return;
|
||||
}
|
||||
|
||||
WarpDrive.logger.warn(String.format("Entity fall damage at motionY %.3f from distance %.3f of %s", entity.motionY, distance, entity));
|
||||
if (WarpDrive.isDev) {
|
||||
WarpDrive.logger.warn(String.format("Entity fall damage at motionY %.3f from distance %.3f of %s", entity.motionY, distance, entity));
|
||||
}
|
||||
|
||||
// check for equipment with NOFALLDAMAGE tag
|
||||
for (int i = 1; i < 5; i++) {
|
||||
|
|
Loading…
Reference in a new issue