2020-05-06 17:48:49 +08:00
|
|
|
From 0000000000000000000000000000000000000000 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
|
2020-05-06 17:48:49 +08:00
|
|
|
index e8f3e55fd3feb4f35bc37dd2fe03925352929bac..44289c23013d14af589762442d83ba5a2c79c4ad 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
|
2019-08-06 00:35:40 +08:00
|
|
|
@@ -175,6 +175,12 @@ public class EntityAreaEffectCloud extends Entity {
|
2019-05-28 06:36:06 +08:00
|
|
|
super.tick();
|
|
|
|
boolean flag = this.l();
|
|
|
|
float f = this.getRadius();
|
|
|
|
+ // Paper start - fix MC-114618
|
2019-06-24 03:31:33 +08:00
|
|
|
+ if (f < 0.0F) {
|
2019-05-28 06:36:06 +08:00
|
|
|
+ this.die();
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ // Paper end
|
|
|
|
|
|
|
|
if (this.world.isClientSide) {
|
|
|
|
ParticleParam particleparam = this.getParticle();
|