Less console spam and solid static fix #2
This commit is contained in:
parent
1d02356036
commit
c19aabfb18
3 changed files with 8 additions and 4 deletions
|
@ -80,7 +80,9 @@ public abstract class RiftBlockEntity extends BlockEntity implements BlockEntity
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setDestination(VirtualTarget destination) {
|
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()) {
|
if (this.getDestination() != null && this.isRegistered()) {
|
||||||
this.getDestination().unregister();
|
this.getDestination().unregister();
|
||||||
|
|
|
@ -45,11 +45,13 @@ public abstract class PocketGeneratorReference extends VirtualSingularPocket {
|
||||||
try {
|
try {
|
||||||
this.weightEquation = Equation.parse(weight);
|
this.weightEquation = Equation.parse(weight);
|
||||||
} catch (EquationParseException e) {
|
} 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 {
|
try {
|
||||||
this.weightEquation = Equation.parse(defaultWeightEquation);
|
this.weightEquation = Equation.parse(defaultWeightEquation);
|
||||||
} catch (EquationParseException equationParseException) {
|
} 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;
|
this.weightEquation = stringDoubleMap -> fallbackWeight;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"variants": {
|
"variants": {
|
||||||
"normal": [
|
"": [
|
||||||
{ "model": "dimdoors:solid_static" },
|
{ "model": "dimdoors:solid_static" },
|
||||||
{ "model": "dimdoors:solid_static", "x": 90 },
|
{ "model": "dimdoors:solid_static", "x": 90 },
|
||||||
{ "model": "dimdoors:solid_static", "x": 180 },
|
{ "model": "dimdoors:solid_static", "x": 180 },
|
||||||
|
|
Loading…
Reference in a new issue