Lightman's Currency

Lightman's Currency

331k Downloads

BUG: {charTyped event handler}

gtf016 opened this issue · 3 comments

commented

Minecraft Version (1.18.2):
Forge Version (40.1.60):
Lightman's Currency Version (1.1.6.4):
Other Relevant Mods & Version (LC Tech, etc.):
Connection Type (Single-player):

Describe the bug
When I try on item_ Create a persistent trader with a copy of this traders trades & name Create blank transactions multiple times
Caused problems

To Reproduce
Steps to reproduce the behavior:

  1. Switch to LC management mode./lcadmin toggleadmin
  2. Put one down Small Item Network Trader and open the trader settings
  3. Click P button after the following settings image
  4. Open the transaction terminal
  5. Error after clicking
    image

Expected behavior
You should be able to delete transactions through /lcadmin universaldata delete

Screenshots/Logs/Crash Reports
crash-2022-07-19_01.50.51-client.txt

Additional context
I'm sorry for the inaccurate description of the problem due to language problems.
If you need more detailed data, please contact me.

commented

This appears to be some error caused by the persistent trader not having any trades (which shouldn't be possible as it's set to throw an error when no trades are loaded), but it should be easy enough to add a few fail safes to fix the crash.

As an aside, you cannot delete persistent traders with /lcadmin universaldata delete, as they are not saved in the trading office, but in the persistentTraders.json config file. Instead of deleting them with a command, simply open the persistentTraders.json file with your favorite text editor, and delete the trader that you want to remove, and then just run the /lcreload command in-game.

Also, for additional context, could I have a copy of the persistentTraders.json file in your config/lightmanscurrency folder?

commented

thank you,I solved the problem temporarily after deleting the data file in config

commented

Well either way, it's now properly fixed in v1.1.6.5. It also no longer lets you hit the Persistent Trader button if the trader doesn't have any valid trades.