mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-17 16:37:43 +01:00
It helps to use the correct indexes :3
This commit is contained in:
@@ -5,7 +5,7 @@ Subject: [PATCH] Log skipped entity's position
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/world/entity/EntityType.java b/src/main/java/net/minecraft/world/entity/EntityType.java
|
||||
index 91be8629612d3afdcd742c2cd0155df738fd992c..5cc8a35e7b3ba6d38eecc2bfd3cacfe3cf433203 100644
|
||||
index 91be8629612d3afdcd742c2cd0155df738fd992c..a5bce375d2d333eec117239d0f0850f6f77e6b2e 100644
|
||||
--- a/src/main/java/net/minecraft/world/entity/EntityType.java
|
||||
+++ b/src/main/java/net/minecraft/world/entity/EntityType.java
|
||||
@@ -573,6 +573,12 @@ public class EntityType<T extends Entity> implements EntityTypeTest<Entity, T> {
|
||||
@@ -15,7 +15,7 @@ index 91be8629612d3afdcd742c2cd0155df738fd992c..5cc8a35e7b3ba6d38eecc2bfd3cacfe3
|
||||
+ // Purpur start - log skipped entity's position
|
||||
+ try {
|
||||
+ ListTag pos = nbt.getList("Pos", 6);
|
||||
+ EntityType.LOGGER.warn("Location: {} {},{},{}", world.getWorld().getName(), pos.getDouble(0), pos.getDouble(0), pos.getDouble(0));
|
||||
+ EntityType.LOGGER.warn("Location: {} {},{},{}", world.getWorld().getName(), pos.getDouble(0), pos.getDouble(1), pos.getDouble(2));
|
||||
+ } catch (Throwable ignore) {}
|
||||
+ // Purpur end
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user