Fixed win room being unlocked by default

This commit is contained in:
LCastr0 2017-02-06 23:52:15 -02:00
parent 511bfdecd7
commit 5dcf028a37
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ public class WinEffectLoveIsABattlefield extends WinEffectGadget
public WinEffectLoveIsABattlefield(GadgetManager manager)
{
super(manager, "Love is a Battlefield", UtilText.splitLineToArray(C.cGray + "Don't hate the players. Hate the game.", LineFormat.LORE),
-17, Material.WOOL, (byte) 6, true);
-17, Material.WOOL, (byte) 6);
_schematicName = "WinRoomLove";
}

View File

@ -184,7 +184,7 @@ public abstract class Gadget extends SalesPackageBase implements Listener
public boolean ownsGadget(Player player)
{
if(isFree() || _free) return true;
if(isFree() || _free) { return true; }
if(Manager.getDonationManager().Get(player).ownsUnknownSalesPackage(getName())) { return true; }
if(Manager.getInventoryManager().Get(player).getItemCount(getName()) > 0) { return true; }