2021-06-11 12:02:28 +00:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: William Blake Galbreath <blake.galbreath@gmail.com>
|
|
|
|
Date: Mon, 27 May 2019 17:35:39 -0500
|
|
|
|
Subject: [PATCH] MC-114618 - Fix EntityAreaEffectCloud from going negative
|
|
|
|
size
|
|
|
|
|
2021-06-13 11:40:34 +00:00
|
|
|
1.17 update note: Likely fixed in 1.17
|
2021-06-11 12:02:28 +00:00
|
|
|
|
2021-06-15 02:54:17 +00:00
|
|
|
fixed https://bugs.mojang.com/browse/MC-114618
|
|
|
|
|
2021-06-11 12:02:28 +00:00
|
|
|
diff --git a/src/main/java/net/minecraft/world/entity/AreaEffectCloud.java b/src/main/java/net/minecraft/world/entity/AreaEffectCloud.java
|
2021-06-13 11:40:34 +00:00
|
|
|
index 4733f74ff028c03a60b73280caf9e4d1e2f0ca30..882c216b508a8623c2393b668cff6d702fe738b9 100644
|
2021-06-11 12:02:28 +00:00
|
|
|
--- a/src/main/java/net/minecraft/world/entity/AreaEffectCloud.java
|
|
|
|
+++ b/src/main/java/net/minecraft/world/entity/AreaEffectCloud.java
|
2021-06-13 11:40:34 +00:00
|
|
|
@@ -197,6 +197,12 @@ public class AreaEffectCloud extends Entity {
|
2021-06-11 12:02:28 +00:00
|
|
|
super.tick();
|
|
|
|
boolean flag = this.isWaiting();
|
|
|
|
float f = this.getRadius();
|
|
|
|
+ // Paper start - fix MC-114618
|
|
|
|
+ if (f < 0.0F) {
|
|
|
|
+ this.remove();
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ // Paper end
|
|
|
|
|
|
|
|
if (this.level.isClientSide) {
|
2021-06-13 11:40:34 +00:00
|
|
|
if (flag && this.random.nextBoolean()) {
|