mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-10-05 20:13:20 -04:00
Merged in slehan/holocore/nge-434-fixes (pull request #377)
NGE-434: fixed bug that allowed items to be worn by races that shouldn't be able to
This commit is contained in:
@@ -397,7 +397,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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user