diff --git a/patches/server/1073-Fix-getMaxHeight-to-be-exclusive-instead-of-inclusiv.patch b/patches/server/1073-Fix-getMaxHeight-to-be-exclusive-instead-of-inclusiv.patch new file mode 100644 index 000000000000..f12f8a5b293c --- /dev/null +++ b/patches/server/1073-Fix-getMaxHeight-to-be-exclusive-instead-of-inclusiv.patch @@ -0,0 +1,20 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: MrPowerGamerBR +Date: Wed, 27 Nov 2024 02:26:32 -0300 +Subject: [PATCH] Fix getMaxHeight to be exclusive instead of inclusive to + match docs + + +diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java +index 8f234b46c24a0ae08aa5f8190c5b27e1f62dfbab..372581a1a44870c53afa5ecd456b1b09ea77b2ae 100644 +--- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java ++++ b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java +@@ -1538,7 +1538,7 @@ public class CraftWorld extends CraftRegionAccessor implements World { + + @Override + public int getMaxHeight() { +- return this.world.getMaxY(); ++ return this.world.getMaxY() + 1; // Paper - Fix getMaxHeight to be exclusive instead of inclusive + } + + @Override