Archiviert
1
0
Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2023-08-31 16:30:53 +02:00
Ursprung 00e08b5943
Commit 1e9b5ead35

Datei anzeigen

@ -209,8 +209,9 @@ public class BauCommand extends SWCommand {
if (target == null) if (target == null)
return; return;
target.setWorldEdit(!target.isWorldEdit()); boolean state = !target.isWorldEdit() || !target.isWorld();
target.setWorld(!target.isWorld()); target.setWorldEdit(state);
target.setWorld(state);
clearMembercache(p); clearMembercache(p);
isAllowedTo(target.isWorldEdit(), p, target, "BAU_MEMBER_TOGGLE_WORLD_EDIT"); isAllowedTo(target.isWorldEdit(), p, target, "BAU_MEMBER_TOGGLE_WORLD_EDIT");
isAllowedTo(target.isWorld(), p, target, "BAU_MEMBER_TOGGLE_WORLD"); isAllowedTo(target.isWorld(), p, target, "BAU_MEMBER_TOGGLE_WORLD");