SteamWar/BauSystem2.0
Archiviert
12
0

Fix Techhider
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
Lixfel 2024-03-14 11:50:52 +01:00
Ursprung 5a991de55a
Commit 5a835acb80
2 geänderte Dateien mit 2 neuen und 3 gelöschten Zeilen

Datei anzeigen

@ -23,7 +23,6 @@ import de.steamwar.bausystem.BauSystem;
import de.steamwar.bausystem.Permission; import de.steamwar.bausystem.Permission;
import de.steamwar.bausystem.config.BauServer; import de.steamwar.bausystem.config.BauServer;
import de.steamwar.bausystem.utils.BauMemberUpdateEvent; import de.steamwar.bausystem.utils.BauMemberUpdateEvent;
import de.steamwar.core.CraftbukkitWrapper;
import de.steamwar.inventory.SWItem; import de.steamwar.inventory.SWItem;
import de.steamwar.linkage.Linked; import de.steamwar.linkage.Linked;
import de.steamwar.sql.BauweltMember; import de.steamwar.sql.BauweltMember;
@ -98,7 +97,7 @@ public class SpectatorListener implements Listener {
materials.add(Material.WATER); materials.add(Material.WATER);
materials.remove(Material.BARRIER); materials.remove(Material.BARRIER);
materials.remove(Material.STONE); materials.remove(Material.STONE);
TechHider techHider = new TechHider((player, i, i1) -> { TechHider techHider = new TechHider((TechHider.LocationEvaluator) (player, i, i1) -> {
return Permission.BUILD.hasPermission(player) || Permission.isTempOnlySpectator(player) || NO_TECHHIDER.contains(player); return Permission.BUILD.hasPermission(player) || Permission.isTempOnlySpectator(player) || NO_TECHHIDER.contains(player);
}, Material.END_STONE, materials, new HashSet<>()); }, Material.END_STONE, materials, new HashSet<>());
techHider.enable(); techHider.enable();

Datei anzeigen

@ -148,7 +148,7 @@ public class XrayCommand extends SWCommand implements Listener, ScoreboardElemen
} }
private TechHider createXray(Region rg, Set<Material> obfuscate) { private TechHider createXray(Region rg, Set<Material> obfuscate) {
TechHider current = new TechHider((p, cX, cY) -> { TechHider current = new TechHider((TechHider.LocationEvaluator) (p, cX, cY) -> {
if (rg.buildChunkOutside(cX, cY)) return true; if (rg.buildChunkOutside(cX, cY)) return true;
return !hidden.get(rg).contains(p); return !hidden.get(rg).contains(p);
}, Material.STRUCTURE_VOID, obfuscate, new HashSet<>()); }, Material.STRUCTURE_VOID, obfuscate, new HashSet<>());