mirror of
https://github.com/YatopiaMC/Yatopia.git
synced 2025-02-02 21:41:25 +01:00
parent
5b1f445951
commit
3e6b1799a2
@ -25,7 +25,7 @@ index c1f992b2ebac9819085bec74bc40ca3b5384c741..462d3431367f97f9d8506fd1a1adf8dc
|
||||
return this.getBlock().a(block);
|
||||
}
|
||||
diff --git a/src/main/java/net/minecraft/server/BlockPosition.java b/src/main/java/net/minecraft/server/BlockPosition.java
|
||||
index e6b5a21c523c598f53207d024322301fbae74825..5e0aa6e35b1d4e23fdf42add15420665045ef3ff 100644
|
||||
index e6b5a21c523c598f53207d024322301fbae74825..294ef31838b750b45187dcf76b43d06729cce00c 100644
|
||||
--- a/src/main/java/net/minecraft/server/BlockPosition.java
|
||||
+++ b/src/main/java/net/minecraft/server/BlockPosition.java
|
||||
@@ -318,9 +318,29 @@ public class BlockPosition extends BaseBlockPosition {
|
||||
@ -35,7 +35,7 @@ index e6b5a21c523c598f53207d024322301fbae74825..5e0aa6e35b1d4e23fdf42add15420665
|
||||
- return b(blockposition, i, j, i).filter(predicate).findFirst();
|
||||
+ // Yatopia start - replace
|
||||
+ BlockPosition best = null;
|
||||
+ for (BlockPosition pos : bList(blockposition, i, j, i)) {
|
||||
+ for (BlockPosition pos : a(blockposition, i, j, i)) {
|
||||
+ if (predicate.test(pos)) {
|
||||
+ best = pos;
|
||||
+ break;
|
||||
|
Loading…
Reference in New Issue
Block a user