Tool Component - Rules not reading float properly?
Summary
When trying to load the TestTool item below, I get an "Error loading item 'TestTool'." I have debugging stack trace below as well.
Steps to reproduce
Install TestTool item on your server, do /mm reload and see the item fails to load. If you remove the "Rules" section of the config, the tool does load.
TestTool:
Id: COD
Display: '<purple>Obsidian Destroyer'
Tool:
DamagePerBlock: 1
DefaultMiningSpeed: 5.0
Rules:
- materials: "OBSIDIAN,CRYING_OBSIDIAN"
speed: 10000.0
isCorrectForBlock: true
Server log file
Debug log snippet
Small Snippet: https://mclo.gs/NhH3Gri Whole snippet: https://mclo.gs/Ka43WrK
Proposed fixes
Take a look at the double/float parser and the rules section of the tool component.