mirror of
https://github.com/PaperMC/Paper.git
synced 2025-09-03 05:43:52 -07:00
rectify Configurable Cartographer Treasure Maps patch
This commit is contained in:
@@ -28,7 +28,7 @@ index a80d8b2ac..32ca0a40e 100644
|
|||||||
+ }
|
+ }
|
||||||
}
|
}
|
||||||
diff --git a/src/main/java/net/minecraft/server/EntityVillager.java b/src/main/java/net/minecraft/server/EntityVillager.java
|
diff --git a/src/main/java/net/minecraft/server/EntityVillager.java b/src/main/java/net/minecraft/server/EntityVillager.java
|
||||||
index ae68f07ab..35221decf 100644
|
index ae68f07ab..8ba150a45 100644
|
||||||
--- a/src/main/java/net/minecraft/server/EntityVillager.java
|
--- a/src/main/java/net/minecraft/server/EntityVillager.java
|
||||||
+++ b/src/main/java/net/minecraft/server/EntityVillager.java
|
+++ b/src/main/java/net/minecraft/server/EntityVillager.java
|
||||||
@@ -0,0 +0,0 @@ public class EntityVillager extends EntityAgeable implements NPC, IMerchant {
|
@@ -0,0 +0,0 @@ public class EntityVillager extends EntityAgeable implements NPC, IMerchant {
|
||||||
@@ -36,6 +36,7 @@ index ae68f07ab..35221decf 100644
|
|||||||
int i = this.a.a(random);
|
int i = this.a.a(random);
|
||||||
World world = imerchant.u_();
|
World world = imerchant.u_();
|
||||||
- BlockPosition blockposition = world.a(this.b, imerchant.v_(), true);
|
- BlockPosition blockposition = world.a(this.b, imerchant.v_(), true);
|
||||||
|
+ if (!world.paperConfig.enableTreasureMaps) return; //Paper
|
||||||
+ BlockPosition blockposition = world.a(this.b, imerchant.v_(), world.paperConfig.treasureMapsAlreadyDiscovered); // Paper - pass false to return first structure, regardless of if its been discovered. true returns only undiscovered.
|
+ BlockPosition blockposition = world.a(this.b, imerchant.v_(), world.paperConfig.treasureMapsAlreadyDiscovered); // Paper - pass false to return first structure, regardless of if its been discovered. true returns only undiscovered.
|
||||||
|
|
||||||
if (blockposition != null) {
|
if (blockposition != null) {
|
||||||
|
Reference in New Issue
Block a user