Skip to content

Commit 5b507f5

Browse files
committed
Readd dropped isInWorldBounds "inline"
1 parent 0110d9f commit 5b507f5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

paper-server/patches/sources/net/minecraft/world/level/Level.java.patch

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@
144144
@Override
145145
public boolean isClientSide() {
146146
return this.isClientSide;
147-
@@ -165,6 +_,13 @@
147+
@@ -165,8 +_,15 @@
148148
return null;
149149
}
150150

@@ -156,8 +156,11 @@
156156
+ // Paper end
157157
+
158158
public boolean isInWorldBounds(final BlockPos pos) {
159-
return this.isInsideBuildHeight(pos) && isInWorldBoundsHorizontal(pos);
159+
- return this.isInsideBuildHeight(pos) && isInWorldBoundsHorizontal(pos);
160+
+ return pos.isInsideBuildHeightAndWorldBoundsHorizontal(this); // Paper - Perf: Optimize isInWorldBounds
160161
}
162+
163+
public boolean isInValidBounds(final BlockPos pos) {
161164
@@ -178,7 +_,7 @@
162165
}
163166

0 commit comments

Comments
 (0)