owmii / Lost-Trinkets

Lost Trinkets adds more than 70+ unlockable trinkets with different abilities and rarities.
GNU Lesser General Public License v3.0
7 stars 12 forks source link

Trinkets usable even after being banned #88

Open Unixkitty opened 3 years ago

Unixkitty commented 3 years ago

Minecraft 1.16.5 Forge 36.2.2 Lost Trinkets 0.1.27

Config: general_common.toml.txt

Description: Blacklisting trinkets doesn't seem to remove them from players, as stated it should in the config file. For context, on the first two screenshots only the server's config was modified, the client's had default settings. The server's debug.log appropriately lists the banned trinkets however:

[11Aug2021 14:25:09.095] [Thread-0/INFO] [losttrinkets/Config]: Gathering Trinkets...
[11Aug2021 14:25:09.095] [Thread-0/INFO] [losttrinkets/Config]: Banned: losttrinkets:book_o_enchanting
[11Aug2021 14:25:09.096] [Thread-0/INFO] [losttrinkets/Config]: Non-Random: losttrinkets:dark_egg
[11Aug2021 14:25:09.096] [Thread-0/INFO] [losttrinkets/Config]: Banned: losttrinkets:pillow_of_secrets
[11Aug2021 14:25:09.096] [Thread-0/INFO] [losttrinkets/Config]: Banned: losttrinkets:octopick
[11Aug2021 14:25:09.096] [Thread-0/INFO] [losttrinkets/Config]: Banned: losttrinkets:ruby_heart
[11Aug2021 14:25:09.096] [Thread-0/INFO] [losttrinkets/Config]: Banned: losttrinkets:magical_herbs
[11Aug2021 14:25:09.096] [Thread-0/INFO] [losttrinkets/Config]: Banned: losttrinkets:magical_feathers
[11Aug2021 14:25:09.097] [Thread-0/INFO] [losttrinkets/Config]: Banned: losttrinkets:broken_totem

For example with the Magical Feathers trinket, I can still fly and use it as shown on the screenshot: 2021-08-11_15 45 26

And on this screenshot other blacklisted trinkets can be seen and used in my unlocked trinket list: 2021-08-11_15-56

It would seem applying the config to the client is also limited only to making the client append text to trinket items such as "Disabled", (I still have all the disabled trinkets and can still use them): 2021-08-11_16 41 45

Log snippet from client:

[11Aug2021 16:31:21.160] [modloading-worker-13/INFO] [losttrinkets/Config]: Enabled: 61 Disabled: 7
[11Aug2021 16:31:21.160] [modloading-worker-13/INFO] [losttrinkets/Config]: Random: 60 Non-Random: 1
[11Aug2021 16:31:21.160] [modloading-worker-13/WARN] [losttrinkets/Config]: Redundant Non-Random Trinket (already banned): losttrinkets:magical_feathers
[11Aug2021 16:31:21.160] [modloading-worker-13/WARN] [losttrinkets/Config]: Redundant Non-Random Trinket (already banned): losttrinkets:book_o_enchanting
[11Aug2021 16:31:21.160] [modloading-worker-13/WARN] [losttrinkets/Config]: Redundant Non-Random Trinket (already banned): losttrinkets:pillow_of_secrets
[11Aug2021 16:31:21.160] [modloading-worker-13/WARN] [losttrinkets/Config]: Redundant Non-Random Trinket (already banned): losttrinkets:octopick
[11Aug2021 16:31:21.160] [modloading-worker-13/WARN] [losttrinkets/Config]: Redundant Non-Random Trinket (already banned): losttrinkets:ruby_heart
[11Aug2021 16:31:21.160] [modloading-worker-13/WARN] [losttrinkets/Config]: Redundant Non-Random Trinket (already banned): losttrinkets:magical_herbs
[11Aug2021 16:31:21.160] [modloading-worker-13/WARN] [losttrinkets/Config]: Redundant Non-Random Trinket (already banned): losttrinkets:broken_totem

Expected behavior: Blacklisting trinkets works as advertised.

BlueAgent commented 3 years ago

Banned trinkets should be removed when players log in. Is this not working?

Also if a trinket is banned you don't have to also put it in the non-random list.

Unixkitty commented 3 years ago

Nope... nothing gets removed from player data, the config only seems to prevent the banned trinkets from being awarded?

The second part was more for testing (still not working? What if I added it there too?)

BlueAgent commented 3 years ago

I can't seem to reproduce... Works fine for me on a dedicated server. It also removes the item from players still in the game or if they log back in and prevents unlocking without even restarting the server too.

https://user-images.githubusercontent.com/630920/130322425-16628160-2abc-41c1-9178-ff30b0117d25.mp4

Unixkitty commented 3 years ago

Interesting, that's exactly how I assumed it would work based on the config comments and whatnot...

Could it be a mod conflict? There doesn't seem to be anything relevant in the log surrounding losttrinket's messages.

Unfortunately I am unable to pinpoint a possible conflict at this time. Here is the modlist:

BlueAgent commented 3 years ago

I can't say just by looking at the mod list and it'd be too much work to download each mod and try reproduce...

Maybe you could try doing the following steps and letting us know how it goes? Also sending the server log and client log of when you try to do this too.

  1. Start with fresh unmodified configs (+ those mods you have up there).
  2. Spawn in piggy trinket and unlock and equip it.
  3. Modify the server config to disable the piggy trinket.
  4. Check the server logs to make sure that the piggy trinket was disabled after the config reloads.
  5. Open the Trinkets menu and check that the piggy trinket is gone