SPIGOT-6580: Cancelling SlimeSplitEvent Causes Infinite Loop

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2021-06-19 08:46:31 +10:00
parent fc07fa5704
commit bcaff2755a

View file

@ -35,7 +35,7 @@
+ if (!event.isCancelled() && event.getCount() > 0) {
+ k = event.getCount();
+ } else {
+ super.die();
+ super.a(entity_removalreason);
+ return;
+ }
+ List<EntityLiving> slimes = new ArrayList<>(j);