SteamWar/BauSystem
Archiviert
13
0

Simplify CommandTNT for Region without Testblock

Dieser Commit ist enthalten in:
jojo 2021-02-03 18:09:16 +01:00
Ursprung d406ed7e66
Commit 475f93426c

Datei anzeigen

@ -139,11 +139,7 @@ public class CommandTNT implements CommandExecutor, Listener {
} }
private void tntToggle(Region region, TNTMode requestedMode, String requestedMessage) { private void tntToggle(Region region, TNTMode requestedMode, String requestedMessage) {
if (requestedMode != null) { if (requestedMode != null && region.hasTestblock()) {
if (!region.hasTestblock() && requestedMode == TNTMode.ONLY_TB) {
requestedMode = TNTMode.ON;
requestedMessage = getEnableMessage();
}
region.setTntMode(requestedMode); region.setTntMode(requestedMode);
RegionToggleCommand.actionBar(region, requestedMessage); RegionToggleCommand.actionBar(region, requestedMessage);
return; return;