Fixed win room being unlocked by default
This commit is contained in:
parent
511bfdecd7
commit
5dcf028a37
@ -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";
|
||||
}
|
||||
|
||||
|
@ -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; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user