2020-05-06 09:48:49 +00:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
2019-05-27 22:36:06 +00: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-11-03 02:22:15 +00:00
|
|
|
index f04204b8722a061a09e2b3cad6c67ab5fdd8f071..5b0ee830b45a677bf354b02cf4fd311d842e7678 100644
|
2019-05-27 22:36:06 +00:00
|
|
|
--- a/src/main/java/net/minecraft/server/EntityAreaEffectCloud.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/EntityAreaEffectCloud.java
|
2019-08-05 16:35:40 +00:00
|
|
|
@@ -175,6 +175,12 @@ public class EntityAreaEffectCloud extends Entity {
|
2019-05-27 22:36:06 +00:00
|
|
|
super.tick();
|
2020-06-25 14:09:55 +00:00
|
|
|
boolean flag = this.k();
|
2019-05-27 22:36:06 +00:00
|
|
|
float f = this.getRadius();
|
|
|
|
+ // Paper start - fix MC-114618
|
2019-06-23 19:31:33 +00:00
|
|
|
+ if (f < 0.0F) {
|
2019-05-27 22:36:06 +00:00
|
|
|
+ this.die();
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ // Paper end
|
|
|
|
|
|
|
|
if (this.world.isClientSide) {
|
|
|
|
ParticleParam particleparam = this.getParticle();
|