mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-08 11:24:11 +01:00
12 lines
873 B
Diff
12 lines
873 B
Diff
|
--- a/net/minecraft/advancements/critereon/LocationPredicate.java
|
||
|
+++ b/net/minecraft/advancements/critereon/LocationPredicate.java
|
||
|
@@ -44,7 +44,7 @@
|
||
|
public boolean matches(ServerLevel world, double x, double y, double z) {
|
||
|
if (this.position.isPresent() && !this.position.get().matches(x, y, z)) {
|
||
|
return false;
|
||
|
- } else if (this.dimension.isPresent() && this.dimension.get() != world.dimension()) {
|
||
|
+ } else if (this.dimension.isPresent() && this.dimension.get() != (io.papermc.paper.configuration.GlobalConfiguration.get().misc.strictAdvancementDimensionCheck ? world.dimension() : org.bukkit.craftbukkit.util.CraftDimensionUtil.getMainDimensionKey(world))) { // Paper - Add option for strict advancement dimension checks
|
||
|
return false;
|
||
|
} else {
|
||
|
BlockPos blockPos = BlockPos.containing(x, y, z);
|