From 3144c6fb19d713f46d19cfb72f09d82fff163eb8 Mon Sep 17 00:00:00 2001 From: KennyTV Date: Mon, 3 Feb 2020 11:02:02 +0100 Subject: [PATCH] Make the tracker warning slightly more aggressive --- .../api/entities/storage/EntityPositionHandler.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/nl/matsv/viabackwards/api/entities/storage/EntityPositionHandler.java b/core/src/main/java/nl/matsv/viabackwards/api/entities/storage/EntityPositionHandler.java index c2b75e22..6d545882 100644 --- a/core/src/main/java/nl/matsv/viabackwards/api/entities/storage/EntityPositionHandler.java +++ b/core/src/main/java/nl/matsv/viabackwards/api/entities/storage/EntityPositionHandler.java @@ -36,7 +36,11 @@ public class EntityPositionHandler { if (!optStoredEntity.isPresent()) { if (!Via.getConfig().isSuppressMetadataErrors()) { ViaBackwards.getPlatform().getLogger().warning("Stored entity with id " + entityId + " missing at position: " + x + " - " + y + " - " + z + " in " + storageClass.getSimpleName()); - if (!warnedForMissingEntity) { + // Reports were getting too much :> + if (entityId == -1 && x == 0 && y == 0 && z == 0) { + ViaBackwards.getPlatform().getLogger().warning("DO NOT REPORT THIS TO VIA, THIS IS A PLUGIN ISSUE - " + + "You can disable this warning in the ViaVersion config under \"suppress-metadata-errors\""); + } else if (!warnedForMissingEntity) { warnedForMissingEntity = true; ViaBackwards.getPlatform().getLogger().warning("This is very likely caused by a plugin sending a teleport packet for an entity outside of the player's range."); ViaBackwards.getPlatform().getLogger().warning("You can disable this warning in the ViaVersion config under \"suppress-metadata-errors\"");