mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-01 12:42:05 -07:00
Merge pull request #2089 from BillyGalbreath/GH2088
MC-114618 - Fix EntityAreaEffectCloud from going negative size
This commit is contained in:
@@ -0,0 +1,42 @@
|
|||||||
|
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
|
||||||
|
|
||||||
|
|
||||||
|
diff --git a/src/main/java/net/minecraft/server/EntityAreaEffectCloud.java b/src/main/java/net/minecraft/server/EntityAreaEffectCloud.java
|
||||||
|
index 418c638d3..2eaed1cd6 100644
|
||||||
|
--- a/src/main/java/net/minecraft/server/EntityAreaEffectCloud.java
|
||||||
|
+++ b/src/main/java/net/minecraft/server/EntityAreaEffectCloud.java
|
||||||
|
@@ -0,0 +0,0 @@ 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();
|
||||||
|
@@ -0,0 +0,0 @@ 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);
|
||||||
|
}
|
||||||
|
--
|
Reference in New Issue
Block a user