2021-06-14 21:17:47 +02:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Shane Freeder <theboyetronic@gmail.com>
|
|
|
|
Date: Sat, 9 Jan 2021 14:17:07 +0100
|
|
|
|
Subject: [PATCH] Remove stale POIs
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/level/ServerLevel.java b/src/main/java/net/minecraft/server/level/ServerLevel.java
|
2021-06-16 22:12:05 +02:00
|
|
|
index e683e3b3e1ee6fddddd9f237344961e0e2ad8ca5..0f6c872288b1ea7cf1dc552827d116360d3c54bb 100644
|
2021-06-14 21:17:47 +02:00
|
|
|
--- a/src/main/java/net/minecraft/server/level/ServerLevel.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/level/ServerLevel.java
|
2021-06-16 22:12:05 +02:00
|
|
|
@@ -1718,6 +1718,11 @@ public class ServerLevel extends net.minecraft.world.level.Level implements Worl
|
2021-06-14 21:17:47 +02:00
|
|
|
});
|
|
|
|
optional1.ifPresent((villageplacetype) -> {
|
|
|
|
this.getServer().execute(() -> {
|
|
|
|
+ // Paper start
|
|
|
|
+ if (!optional.isPresent() && this.getPoiManager().exists(blockposition1, com.google.common.base.Predicates.alwaysTrue())) {
|
|
|
|
+ this.getPoiManager().remove(blockposition1);
|
|
|
|
+ }
|
|
|
|
+ // Paper end
|
|
|
|
this.getPoiManager().add(blockposition1, villageplacetype);
|
|
|
|
DebugPackets.sendPoiAddedPacket(this, blockposition1);
|
|
|
|
});
|