1
0
Fork 0

Disable respawn anchor explosions separately

Having it tied to TNT was a bad idea, since TNT is sometimes needed for
mining and stuff.
This commit is contained in:
Ryan Fox 2020-08-07 22:40:05 +00:00
parent 654cdbd09a
commit 212f2db61a
Signed by: flewkey
GPG Key ID: 94F56ADFD848851E
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ public abstract class MixinRespawnAnchorBlock extends Block {
@Inject(method = "explode", at = @At("HEAD"), cancellable = true)
private void onExplode(CallbackInfo ci) {
if (Config.getBool("disableTntExplosions") == true)
if (Config.getBool("disableRespawnAnchorExplosions") == true)
ci.cancel();
}
}

View File

@ -33,7 +33,7 @@ public class Config {
json = new JSONObject(jsonRaw);
} else {
LOGGER.info("Config not found, creating one");
json = new JSONObject("{\"disableTntExplosions\":false,\"spawn\":[0,0,0,0,0,\"\"],\"members\":[]}");
json = new JSONObject("{\"disableTntExplosions\":false,\"disableRespawnAnchorExplosions\":false,\"spawn\":[0,0,0,0,0,\"\"],\"members\":[]}");
saveConfig();
}
LOGGER.info("Configuration loaded");