Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-22 22:38:17 +01:00
25 Zeilen
1.0 KiB
Diff
25 Zeilen
1.0 KiB
Diff
|
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/world/entity/AreaEffectCloud.java b/src/main/java/net/minecraft/world/entity/AreaEffectCloud.java
|
||
|
index 949553229a55f8c8b9a5c0141409d1520eff22c7..fe4312a58b0b2ffd63db14068d99c5391e0eb0a0 100644
|
||
|
--- a/src/main/java/net/minecraft/world/entity/AreaEffectCloud.java
|
||
|
+++ b/src/main/java/net/minecraft/world/entity/AreaEffectCloud.java
|
||
|
@@ -194,6 +194,12 @@ public class AreaEffectCloud extends Entity {
|
||
|
super.tick();
|
||
|
boolean flag = this.isWaiting();
|
||
|
float f = this.getRadius();
|
||
|
+ // Paper start - fix MC-114618
|
||
|
+ if (f < 0.0F) {
|
||
|
+ this.remove();
|
||
|
+ return;
|
||
|
+ }
|
||
|
+ // Paper end
|
||
|
|
||
|
if (this.level.isClientSide) {
|
||
|
ParticleOptions particleparam = this.getParticle();
|