2021-06-12 00:37:16 +02:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Zach Brown <zach.brown@destroystokyo.com>
|
|
|
|
Date: Tue, 1 Mar 2016 23:58:50 -0600
|
|
|
|
Subject: [PATCH] Configurable top of nether void damage
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/world/entity/Entity.java b/src/main/java/net/minecraft/world/entity/Entity.java
|
2022-07-27 21:18:51 +02:00
|
|
|
index a07aafad9f94b85a689568c1784727a8c5b0452b..45aca8dde5b6f1a3aef907b1a74809e7f4aa66e4 100644
|
2021-06-12 00:37:16 +02:00
|
|
|
--- a/src/main/java/net/minecraft/world/entity/Entity.java
|
|
|
|
+++ b/src/main/java/net/minecraft/world/entity/Entity.java
|
2022-07-04 16:38:06 +02:00
|
|
|
@@ -653,7 +653,11 @@ public abstract class Entity implements Nameable, EntityAccess, CommandSource {
|
2021-06-12 00:37:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public void checkOutOfWorld() {
|
|
|
|
- if (this.getY() < (double) (this.level.getMinBuildHeight() - 64)) {
|
|
|
|
+ // Paper start - Configurable nether ceiling damage
|
|
|
|
+ if (this.getY() < (double) (this.level.getMinBuildHeight() - 64) || (this.level.getWorld().getEnvironment() == org.bukkit.World.Environment.NETHER
|
2022-06-09 10:51:45 +02:00
|
|
|
+ && level.paperConfig().environment.netherCeilingVoidDamageHeight > 0
|
|
|
|
+ && this.getY() >= this.level.paperConfig().environment.netherCeilingVoidDamageHeight)) {
|
2021-06-12 00:37:16 +02:00
|
|
|
+ // Paper end
|
|
|
|
this.outOfWorld();
|
|
|
|
}
|
|
|
|
|