Less console spam and solid static fix #2

This commit is contained in:
SD 2021-03-25 19:01:25 +05:30
parent 1d02356036
commit c19aabfb18
3 changed files with 8 additions and 4 deletions

View file

@ -80,7 +80,9 @@ public abstract class RiftBlockEntity extends BlockEntity implements BlockEntity
}
public void setDestination(VirtualTarget destination) {
System.out.println("setting Destination " + destination);
if (LOGGER.isDebugEnabled()) {
LOGGER.debug("Setting destination {} for {}", destination, this.pos.toShortString());
}
if (this.getDestination() != null && this.isRegistered()) {
this.getDestination().unregister();

View file

@ -45,11 +45,13 @@ public abstract class PocketGeneratorReference extends VirtualSingularPocket {
try {
this.weightEquation = Equation.parse(weight);
} catch (EquationParseException e) {
LOGGER.error("Could not parse weight equation \"" + weight + "\", defaulting to default weight equation \"" + defaultWeightEquation + "\"", e);
LOGGER.debug("Defaulting to default weight equation for {}", this);
LOGGER.debug("Exception Stacktrace", e);
try {
this.weightEquation = Equation.parse(defaultWeightEquation);
} catch (EquationParseException equationParseException) {
LOGGER.error("Could not parse default weight equation \"" + defaultWeightEquation + "\", defaulting to fallback weight \"" + fallbackWeight + "\"", equationParseException);
LOGGER.debug("Defaulting to default weight equation for {}", this);
LOGGER.debug("Exception Stacktrace", e);
this.weightEquation = stringDoubleMap -> fallbackWeight;
}
}

View file

@ -1,6 +1,6 @@
{
"variants": {
"normal": [
"": [
{ "model": "dimdoors:solid_static" },
{ "model": "dimdoors:solid_static", "x": 90 },
{ "model": "dimdoors:solid_static", "x": 180 },