Fix logic error when checking for use-inventory overrides.

Dieser Commit ist enthalten in:
wizjany 2013-07-26 08:33:52 -04:00
Ursprung d61dec2ee7
Commit bc39a913ea

Datei anzeigen

@ -344,10 +344,9 @@ public class WorldEdit {
// Have the session use inventory if it's enabled and the player
// doesn't have an override
session.setUseInventory(config.useInventory
&& !((config.useInventoryOverride ||
(config.useInventoryCreativeOverride && player.hasCreativeMode()))
&& player.hasPermission("worldedit.inventory.unrestricted")));
&& !(config.useInventoryOverride
&& (player.hasPermission("worldedit.inventory.unrestricted")
|| (config.useInventoryCreativeOverride && player.hasCreativeMode()))));
}
return session;