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
|
|
|
|
|
|
|
|
|
2021-03-16 15:19:45 +08:00
|
|
|
diff --git a/src/main/java/net/minecraft/world/entity/EntityAreaEffectCloud.java b/src/main/java/net/minecraft/world/entity/EntityAreaEffectCloud.java
|
|
|
|
index 47099ecd70e5077cad8372446d54e28398785bec..679dfe75ea68e38679cd7d6348d0e24ca61911e4 100644
|
|
|
|
--- a/src/main/java/net/minecraft/world/entity/EntityAreaEffectCloud.java
|
|
|
|
+++ b/src/main/java/net/minecraft/world/entity/EntityAreaEffectCloud.java
|
|
|
|
@@ -196,6 +196,12 @@ public class EntityAreaEffectCloud extends Entity {
|
2019-05-28 06:36:06 +08:00
|
|
|
super.tick();
|
2020-06-25 22:09:55 +08:00
|
|
|
boolean flag = this.k();
|
2019-05-28 06:36:06 +08:00
|
|
|
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();
|