Bountiful icon indicating copy to clipboard operation
Bountiful copied to clipboard

[Bug, 1.20.1]: Villager Hats compat causing clients to disconnect on servers

Open NovelPhacelia opened this issue 2 years ago • 5 comments

What happened?

Clients disconnect from server when bounties update with villager hats, Villager Hats version 1.6.1

How can we reproduce it?

  1. Join a server with Villager Hat and Bountiful (This don't work on client, but still outputs logs)
  2. Go to a village

Mod Version

6.0.3

Mod Loader

Fabric

Mod Loader Version

0.86.0

Relevant log output

latest.log [16:24:25] [Server thread/WARN]: Bountiful reward pool entry is not valid!: all_rew_villager_hats_random_hat [16:24:25] [Server thread/WARN]: Bounty Pool Entry Invalid: (all_rew_villager_hats_random_hat - #villager-hats:hats) details: { "type": "minecraft:item_tag", "rarity": "RARE", "content": "#villager-hats:hats", "name": null, "icon": null, "amount": { "min": 1, "max": 1 }, "unitWorth": 2000.0, "weightMult": 0.009090909090909092, "timeMult": 1.0, "repRequired": 0.0, "forbids": [ ], "conditions": null, "mystery": false, "nbt": null }

NovelPhacelia avatar Jul 28 '23 23:07 NovelPhacelia

Interesting - do you have a client version of this log? This simply contains warnings and no crash; it could be a recursive loop timing out, but I don't see any sort of recursive stack limit being reached.

ejektaflex avatar Jul 28 '23 23:07 ejektaflex

latest.log Tried it with the full list of mods and got the same result, it only disconnects me on servers but the server itself never crashes

NovelPhacelia avatar Jul 29 '23 02:07 NovelPhacelia

For now, you can disable the Villager Hats compat datapack by running this on the server: /datapack disable "bountiful:compat-villager-hats" I hope that helps!

ejektaflex avatar Jul 29 '23 03:07 ejektaflex

Thanks! I'll try this

NovelPhacelia avatar Jul 29 '23 06:07 NovelPhacelia

It also happens on single player worlds, causing "invalid player data" error

viktordimov avatar Mar 01 '24 17:03 viktordimov