diff --git a/api/src/main/java/me/tofaa/entitylib/ve/ViewerEngine.java b/api/src/main/java/me/tofaa/entitylib/ve/ViewerEngine.java index 0d3630f..3431e08 100644 --- a/api/src/main/java/me/tofaa/entitylib/ve/ViewerEngine.java +++ b/api/src/main/java/me/tofaa/entitylib/ve/ViewerEngine.java @@ -121,8 +121,8 @@ public void clearTracked() { * @return true if the user passed and did not fail any rules, false otherwise */ public boolean canSpawnFor(User user, WrapperEntity entity) { - if (entity.getViewerRules().stream().anyMatch(rule -> rule.shouldSee(user))) return true; - return globalRules.stream().anyMatch(rule -> rule.shouldSee(user)); + if (!entity.getViewerRules().isEmpty() && entity.getViewerRules().stream().allMatch(rule -> rule.shouldSee(user))) return true; + return globalRules.stream().allMatch(rule -> rule.shouldSee(user)); } /**