fix certain void trade setups

This commit is contained in:
sebseb7
2024-01-09 09:04:11 +01:00
parent d232176355
commit 28eb007a06
2 changed files with 4 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ mod_name = AutoTrade
author = sebseb7 author = sebseb7
mod_file_name = autotrade-fabric mod_file_name = autotrade-fabric
mod_version = 0.0.8 mod_version = 0.0.9
malilib_version = 0.18.0 malilib_version = 0.18.0
minecraft_version_min = 1.20.3 minecraft_version_min = 1.20.3

View File

@@ -207,7 +207,9 @@ public class KeybindCallbacks implements IHotkeyCallback, IClientTickHandler {
boolean found = false; boolean found = false;
for (Entity entity : mc.player.clientWorld.getEntities()) { for (Entity entity : mc.player.clientWorld.getEntities()) {
if (entity instanceof VillagerEntity || entity instanceof WanderingTraderEntity) { if (entity instanceof VillagerEntity || entity instanceof WanderingTraderEntity) {
found = true; if (villagersInRange.contains(entity)) {
found = true;
}
} }
} }