Add debug output

This commit is contained in:
2026-08-26 22:31:30 +02:00
parent 8a53aecfac
commit 97c1da1b2a
@@ -47,7 +47,7 @@ public class Check implements Listener {
private boolean checkPermission(SteamwarUser user, SchematicNode schematic) { private boolean checkPermission(SteamwarUser user, SchematicNode schematic) {
GameModeConfig<Object, String> gameModeConfig = GameModeConfig.getAll().stream() GameModeConfig<Object, String> gameModeConfig = GameModeConfig.getAll().stream()
.filter(gmc -> gmc.Schematic.Type != null && gmc.Schematic.Type.checkType().name().equals(schematic.getSchemtype().name())) .filter(gmc -> gmc.Schematic.Type != null && gmc.Schematic.Type.checkType() != null && schematic.getSchemtype().name().equals(gmc.Schematic.Type.checkType().name()))
.findFirst() .findFirst()
.orElse(null); .orElse(null);
if (gameModeConfig == null) gameModeConfig = GameModeConfig.getDefaults(); if (gameModeConfig == null) gameModeConfig = GameModeConfig.getDefaults();