Fixed comma in plasma mushroom naming
This commit is contained in:
parent
122ba31e5f
commit
96bd84ea1a
|
@ -27,6 +27,8 @@
|
|||
|
||||
package love.distributedrebirth.nx01.warp.core;
|
||||
|
||||
import java.util.Objects;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
import love.distributedrebirth.nx01.warp.core.react.WarpReact;
|
||||
|
@ -44,6 +46,7 @@ public class WarpCoreSpeedMonitor implements WarpReactTypeScript {
|
|||
public static final WarpReactPlasma API = WarpReactPlasma.ofClass(WarpCoreSpeedMonitor.class);
|
||||
private static final WarpReactPlasma API_DILITHIUM = WarpCoreReactor.DILITHIUM;
|
||||
private static final Logger LOG = Logger.getLogger(WarpCoreSpeedMonitor.class.getName());
|
||||
private Level level = Level.FINE;
|
||||
|
||||
@Override
|
||||
public void onEvent(WarpReactPlasmaPulse<WarpSpaceAntimatterInducer> signal) {
|
||||
|
@ -51,10 +54,27 @@ public class WarpCoreSpeedMonitor implements WarpReactTypeScript {
|
|||
react.claim(API);
|
||||
react.requireSlot(API, API_DILITHIUM);
|
||||
react.registrate(API_DILITHIUM, WarpSpacePlasmaAdd.class, v -> {
|
||||
LOG.fine("slot-add: " + v.getData().getSlot().getSlotPath());
|
||||
LOG.log(level, "slot-add: " + v.getData().getSlot().getSlotPath());
|
||||
});
|
||||
react.registrate(API_DILITHIUM, WarpSpacePlasmaRemove.class, v -> {
|
||||
LOG.fine("slot-remove: " + v.getData().getSlot().getSlotPath());
|
||||
LOG.log(level, "slot-remove: " + v.getData().getSlot().getSlotPath());
|
||||
});
|
||||
react.claimIn(API, UpdateLogLevel.class);
|
||||
react.registrate(API, UpdateLogLevel.class, v -> {
|
||||
level = v.getData().getLevel();
|
||||
});
|
||||
}
|
||||
|
||||
public final class UpdateLogLevel {
|
||||
|
||||
private final Level level;
|
||||
|
||||
public UpdateLogLevel(Level level) {
|
||||
this.level = Objects.requireNonNull(level);
|
||||
}
|
||||
|
||||
public Level getLevel() {
|
||||
return level;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -95,7 +95,7 @@ public final class WarpReactPlasma {
|
|||
}
|
||||
|
||||
public static WarpReactPlasma ofClassQualified(Class<?> scriptClz, String qualifier) {
|
||||
return new WarpReactPlasma(null, scriptClz.getPackageName() + ":type=" + scriptClz.getSimpleName() + ":name=" + qualifier);
|
||||
return new WarpReactPlasma(null, scriptClz.getPackageName() + ":type=" + scriptClz.getSimpleName() + ",name=" + qualifier);
|
||||
}
|
||||
|
||||
public static WarpReactPlasma ofClass(Class<?> scriptClz) {
|
||||
|
|
|
@ -29,7 +29,6 @@ package love.distributedrebirth.nx01.zerofungus.server;
|
|||
|
||||
import java.util.logging.Logger;
|
||||
|
||||
import love.distributedrebirth.nx01.warp.core.react.WarpReactPlasma;
|
||||
import love.distributedrebirth.nx01.warp.core.react.WarpReactPlasmaPulse;
|
||||
import love.distributedrebirth.nx01.warp.core.react.WarpReactTypeScript;
|
||||
import love.distributedrebirth.nx01.warp.core.space.WarpSpaceAntimatterInducer;
|
||||
|
@ -38,12 +37,10 @@ import love.distributedrebirth.nx01.warp.core.space.WarpSpaceAntimatterInducer;
|
|||
/// @version ©Δ∞ 仙上主天
|
||||
public class ZFunRtsServerBooted implements WarpReactTypeScript {
|
||||
|
||||
public static final WarpReactPlasma API = WarpReactPlasma.ofClass(ZFunRtsServerBooted.class);
|
||||
private static final Logger logger = Logger.getLogger(ZFunRtsServerBooted.class.getName());
|
||||
|
||||
@Override
|
||||
public void onEvent(WarpReactPlasmaPulse<WarpSpaceAntimatterInducer> signal) {
|
||||
signal.getReact().claim(API);
|
||||
logger.info("╔═╗┌─┐┬─┐┌─┐ .╔═╗┬ ┬┌┐┌╔═╗┬ ┬┌─┐");
|
||||
logger.info("╔═╝├┤ ├┬┘│ │ . ╠╣ │ ││││║ ╦│ │└─┐");
|
||||
logger.info("╚═╝└─┘┴└─└─┘. ╚ └─┘┘└┘╚═╝└─┘└─┘");
|
||||
|
|
Loading…
Reference in a new issue