APDevTeam / Movecraft

The original movement plugin for Paper. Reloaded. Again.
GNU General Public License v3.0
121 stars 76 forks source link

Tags such as "#glass" and "#chests" not parsing when loading crafttypes #607

Closed DallinFromEarth closed 1 year ago

DallinFromEarth commented 1 year ago

Describe the bug When loading the craft types into memory, the parser fails, print to the console: "ERROR PARSING CRAFT FILE: 'Airship.craft': Entry #glass is not a valid tag!" for every craft type with a similar tag. This occurs even when deleting the custom craft types and using the auto-generated craft files.

To Reproduce Steps to reproduce the behavior:

  1. Save one or more craft files using tags such as "#glass", or simply allow Movecraft to generate the defaults
  2. Launch the server, or run the "/movecraft reloadtypes" command in game
  3. The console then shows the error message for each craft type, and you are unable to pilot the craft.

Expected behavior It should parse the files and load the craft types into memory so that crafts may be piloted

Versions (please complete the following information):

Example craft file that doesn't parse correctly (.txt added just so that it would upload to GitHub) Airskiff-2.craft.txt

DallinFromEarth commented 1 year ago

This issue has been solved before, I finally found it, here it is: https://github.com/APDevTeam/Movecraft/issues/602