13
0

Hotfix Nr. 1
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
Chaoscaot 2022-08-22 18:51:07 +02:00
Ursprung 3766265fc7
Commit 6eef99db65

Datei anzeigen

@ -106,7 +106,7 @@ public class SchematicCommand extends SWCommand {
} }
@Register({"info", "public"}) @Register({"info", "public"})
public void schemInfoPublic(Player player, @Validator("isDirValidator") @Mapper("publicMapper") SchematicNode node) { public void schemInfoPublic(Player player, @Mapper("publicMapper") SchematicNode node) {
schemInfo(player, node); schemInfo(player, node);
} }
@ -599,12 +599,7 @@ public class SchematicCommand extends SWCommand {
@Override @Override
public SchematicNode map(CommandSender commandSender, String[] previousArguments, String s) { public SchematicNode map(CommandSender commandSender, String[] previousArguments, String s) {
SchematicNode result = SchematicNode.getNodeFromPath(getUser((Player) commandSender), s); return SchematicNode.getNodeFromPath(getUser((Player) commandSender), s);
if (result == null || !result.isDir()) {
return null;
} else {
return result;
}
} }
}; };
} }
@ -621,12 +616,7 @@ public class SchematicCommand extends SWCommand {
@Override @Override
public SchematicNode map(CommandSender commandSender, String[] previousArguments, String s) { public SchematicNode map(CommandSender commandSender, String[] previousArguments, String s) {
SchematicNode result = publicCommandTypeMapper.map(commandSender, previousArguments, s); return publicCommandTypeMapper.map(commandSender, previousArguments, s);
if (result == null || !result.isDir()) {
return null;
} else {
return result;
}
} }
}; };
} }