SPIGOT-6580: Cancelling SlimeSplitEvent Causes Infinite Loop
By: md_5 <git@md-5.net>
This commit is contained in:
@@ -35,7 +35,7 @@
|
|||||||
+ if (!event.isCancelled() && event.getCount() > 0) {
|
+ if (!event.isCancelled() && event.getCount() > 0) {
|
||||||
+ k = event.getCount();
|
+ k = event.getCount();
|
||||||
+ } else {
|
+ } else {
|
||||||
+ super.die();
|
+ super.a(entity_removalreason);
|
||||||
+ return;
|
+ return;
|
||||||
+ }
|
+ }
|
||||||
+ List<EntityLiving> slimes = new ArrayList<>(j);
|
+ List<EntityLiving> slimes = new ArrayList<>(j);
|
||||||
|
|||||||
Reference in New Issue
Block a user