APDevTeam / Movecraft-Combat

Movecraft Combat Addon
GNU General Public License v3.0
7 stars 17 forks source link

Fix: Blast resistance float values #122

Closed DerToaster98 closed 6 months ago

DerToaster98 commented 6 months ago

Fixes floating point values (e.g. 4.2) not being loaded.

Most likely it gets loaded as a double value.

The old code uses instanceof Integer / instanceof Float checks. Instead one should use Float.parseFloat(string), that always returns a float and is the cleaner way imo.