mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-19 14:51:27 +01:00
Ensure POI removal occurs on the correct thread
This commit is contained in:
parent
3a358f7e70
commit
442fa32443
@ -33,8 +33,11 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
Optional<VillagePlaceType> optional1 = VillagePlaceType.b(iblockdata1);
|
||||
|
||||
+ // Paper start
|
||||
+ if (!optional.isPresent() && this.getPoiStorage().test(blockposition, com.google.common.base.Predicates.alwaysTrue()))
|
||||
+ this.getPoiStorage().remove(blockposition);
|
||||
+ this.getMinecraftServer().execute(() -> {
|
||||
+ if (!optional.isPresent() && this.getPoiStorage().test(blockposition, com.google.common.base.Predicates.alwaysTrue())) {
|
||||
+ this.getPoiStorage().remove(blockposition);
|
||||
+ }
|
||||
+ });
|
||||
+ // Paper end
|
||||
if (!Objects.equals(optional, optional1)) {
|
||||
BlockPosition blockposition1 = blockposition.immutableCopy();
|
||||
|
Loading…
Reference in New Issue
Block a user