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:
parent
4f994b3883
commit
514f2158cc
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue