SPIGOT-6580: Cancelling SlimeSplitEvent Causes Infinite Loop

This commit is contained in:
md_5 2021-06-19 08:46:31 +10:00
parent 78d93f77d5
commit 68d403188a
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

View File

@ -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);