13
0
geforkt von Mirrors/Paper

rectify Configurable Cartographer Treasure Maps patch

Dieser Commit ist enthalten in:
Shane Freeder 2017-10-30 13:06:35 +00:00
Ursprung 56763aad0d
Commit cfb274d3af

Datei anzeigen

@ -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
index ae68f07ab..35221decf 100644
index ae68f07ab..8ba150a45 100644
--- a/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 {
@ -36,6 +36,7 @@ index ae68f07ab..35221decf 100644
int i = this.a.a(random);
World world = imerchant.u_();
- 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.
if (blockposition != null) {