Scissors/patches/server/0035-Don-t-warn-on-duplicate-entity-UUIDs.patch

20 lines
1.1 KiB
Diff
Raw Normal View History

2023-04-28 19:50:48 +00:00
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Luna <lunahatesgogle@gmail.com>
Date: Fri, 28 Apr 2023 16:46:00 -0300
Subject: [PATCH] Don't warn on duplicate entity UUIDs
diff --git a/src/main/java/io/papermc/paper/chunk/system/entity/EntityLookup.java b/src/main/java/io/papermc/paper/chunk/system/entity/EntityLookup.java
2023-09-24 22:01:28 +00:00
index c4d1dbbd39ba0cdc9176ffa6d350d2aa50380211..0059a67d168f448085a8a2b983bdd24944cb0cee 100644
2023-04-28 19:50:48 +00:00
--- a/src/main/java/io/papermc/paper/chunk/system/entity/EntityLookup.java
+++ b/src/main/java/io/papermc/paper/chunk/system/entity/EntityLookup.java
2023-09-24 22:01:28 +00:00
@@ -407,7 +407,7 @@ public final class EntityLookup implements LevelEntityGetter<Entity> {
2023-04-28 19:50:48 +00:00
return false;
}
if (this.entityByUUID.containsKey(entity.getUUID())) {
- LOGGER.warn("Entity uuid already exists: " + entity.getUUID() + ", mapped to " + this.entityByUUID.get(entity.getUUID()) + ", can't add " + entity);
+ // Scissors - Don't warn on duplicate entity UUIDs
return false;
}
this.entityById.put(entity.getId(), entity);