2019-06-14 10:27:40 +08:00
|
|
|
From 7e81c4e0469c1a263e792dd5657bae9e9d9f6e0e Mon Sep 17 00:00:00 2001
|
2019-05-28 06:36:06 +08:00
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/EntityAreaEffectCloud.java b/src/main/java/net/minecraft/server/EntityAreaEffectCloud.java
|
2019-06-06 23:36:57 +08:00
|
|
|
index 418c638d31..2eaed1cd63 100644
|
2019-05-28 06:36:06 +08:00
|
|
|
--- a/src/main/java/net/minecraft/server/EntityAreaEffectCloud.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/EntityAreaEffectCloud.java
|
|
|
|
@@ -163,6 +163,12 @@ public class EntityAreaEffectCloud extends Entity {
|
|
|
|
super.tick();
|
|
|
|
boolean flag = this.l();
|
|
|
|
float f = this.getRadius();
|
|
|
|
+ // Paper start - fix MC-114618
|
|
|
|
+ if (f < 0.5F) {
|
|
|
|
+ this.die();
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ // Paper end
|
|
|
|
|
|
|
|
if (this.world.isClientSide) {
|
|
|
|
ParticleParam particleparam = this.getParticle();
|
|
|
|
@@ -232,10 +238,12 @@ public class EntityAreaEffectCloud extends Entity {
|
|
|
|
|
|
|
|
if (this.radiusPerTick != 0.0F) {
|
|
|
|
f += this.radiusPerTick;
|
|
|
|
- if (f < 0.5F) {
|
|
|
|
- this.die();
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
+ // Paper start - moved up - fix MC-114618
|
|
|
|
+ //if (f < 0.5F) {
|
|
|
|
+ // this.die();
|
|
|
|
+ // return;
|
|
|
|
+ //}
|
|
|
|
+ // Paper end
|
|
|
|
|
|
|
|
this.setRadius(f);
|
|
|
|
}
|
|
|
|
--
|
2019-05-29 11:25:08 +08:00
|
|
|
2.21.0
|
2019-05-28 06:36:06 +08:00
|
|
|
|