mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-01 17:01:56 +01:00
Backport MC-114618 - EntityAreaEffectCloud negative size fix
This commit is contained in:
parent
7107c7db3c
commit
d03adac48b
1 changed files with 41 additions and 0 deletions
|
@ -0,0 +1,41 @@
|
|||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: William Blake Galbreath <blake.galbreath@gmail.com>
|
||||
Date: Sun, 2 Jun 2019 21:12:42 -0500
|
||||
Subject: [PATCH] MC-114618 - Fix EntityAreaEffectCloud from going negative
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/EntityAreaEffectCloud.java b/src/main/java/net/minecraft/server/EntityAreaEffectCloud.java
|
||||
index b2814c0e..13d749af 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);
|
||||
}
|
||||
--
|
Loading…
Reference in a new issue