From 31ee1e11ac3fcd1395f80b90eebcf58efd0db3c1 Mon Sep 17 00:00:00 2001 From: Snownee Date: Fri, 22 Nov 2024 14:49:00 +0800 Subject: [PATCH] fix: Looking at a Zombie Villager throws Exception (close: #504) --- .../java/snownee/jade/addon/vanilla/ZombieVillagerProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/snownee/jade/addon/vanilla/ZombieVillagerProvider.java b/src/main/java/snownee/jade/addon/vanilla/ZombieVillagerProvider.java index 26893433..44112c28 100644 --- a/src/main/java/snownee/jade/addon/vanilla/ZombieVillagerProvider.java +++ b/src/main/java/snownee/jade/addon/vanilla/ZombieVillagerProvider.java @@ -30,7 +30,7 @@ public void appendTooltip(ITooltip tooltip, EntityAccessor accessor, IPluginConf @Override public boolean shouldRequestData(EntityAccessor accessor) { - return ((ZombieVillager) accessor).isConverting(); + return ((ZombieVillager) accessor.getEntity()).isConverting(); } @Override