Remove Wither from async checking

The fake wither explosion was not convincing enough...

If we ever get an API to set the summoned wither state then this could
be put back in.
This commit is contained in:
tastybento 2020-12-22 09:40:09 -08:00
parent 4f994b3883
commit 514f2158cc
1 changed files with 2 additions and 3 deletions

View File

@ -145,7 +145,6 @@ public class EntityLimitListener implements Listener {
}
// Some checks can be done async, some not
switch (e.getSpawnReason()) {
case BUILD_WITHER:
case BUILD_SNOWMAN:
case BUILD_IRONGOLEM:
checkLimit(e, e.getEntity(), e.getSpawnReason(), bypass, true);
@ -447,8 +446,8 @@ public class EntityLimitListener implements Listener {
if (addon.getBlockLimitListener().getIsland(island.getUniqueId()) != null) {
Map<String, EntityGroup> groupbyname = groupsLimits.keySet().stream().collect(Collectors.toMap(e -> e.getName(), e -> e));
addon.getBlockLimitListener().getIsland(island.getUniqueId()).getEntityGroupLimits().entrySet().stream()
.filter(e -> groupbyname.containsKey(e.getKey()))
.forEach(e -> groupsLimits.put(groupbyname.get(e.getKey()), e.getValue()));
.filter(e -> groupbyname.containsKey(e.getKey()))
.forEach(e -> groupsLimits.put(groupbyname.get(e.getKey()), e.getValue()));
}
// Now do the group limits