mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-09-06 15:58:20 +00:00
Fix logic error when checking for use-inventory overrides.
This commit is contained in:
parent
d61dec2ee7
commit
bc39a913ea
@ -344,10 +344,9 @@ public class WorldEdit {
|
|||||||
// Have the session use inventory if it's enabled and the player
|
// Have the session use inventory if it's enabled and the player
|
||||||
// doesn't have an override
|
// doesn't have an override
|
||||||
session.setUseInventory(config.useInventory
|
session.setUseInventory(config.useInventory
|
||||||
&& !((config.useInventoryOverride ||
|
&& !(config.useInventoryOverride
|
||||||
(config.useInventoryCreativeOverride && player.hasCreativeMode()))
|
&& (player.hasPermission("worldedit.inventory.unrestricted")
|
||||||
&& player.hasPermission("worldedit.inventory.unrestricted")));
|
|| (config.useInventoryCreativeOverride && player.hasCreativeMode()))));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return session;
|
return session;
|
||||||
|
Loading…
Reference in New Issue
Block a user