From 884314255b03e79aa46eac853a50752b7056761d Mon Sep 17 00:00:00 2001 From: Skyler Lehan Date: Thu, 8 Dec 2016 12:00:41 -0500 Subject: [PATCH] NGE-434: fixed bug that allowed items to be worn by races that shouldn't be able to --- src/services/objects/StaticItemService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/objects/StaticItemService.java b/src/services/objects/StaticItemService.java index a195a45e2..9ebc4cb96 100644 --- a/src/services/objects/StaticItemService.java +++ b/src/services/objects/StaticItemService.java @@ -395,7 +395,7 @@ public final class StaticItemService extends Service { object.addAttribute("effect", buffName); // Add the race restrictions only if there are any - if (!wearableByWookiees && !wearableByIthorians && !wearableByRodians && !wearableByTrandoshans && !wearableByRest) + if (!wearableByWookiees || !wearableByIthorians || !wearableByRodians || !wearableByTrandoshans || !wearableByRest) object.addAttribute("species_restrictions.species_name", buildRaceRestrictionString()); }