EvModder / DropHeads

A highly configurable head collecting plugin for Minecraft
GNU Lesser General Public License v3.0
36 stars 28 forks source link

Substring was using an invalid length. Fixed a console issue #76

Closed felix642 closed 2 years ago

felix642 commented 2 years ago

closes #75

The .substring() function was stilled using the old string's length. I also did some refactoring to make it a bit more robust.

felix642 commented 2 years ago

@EvModder I didn't had the chance to compile this on my local machine. I didn't see any maven / gradle setup so I assume that I have to manually configure the project ?

I don't have the dependencies on my machine right now. I will install them tomorrow morning when I have time.

If you haven't submit the new version to bukkit yet, I think it would be a good idea to add this commit to the update.

felix642 commented 2 years ago

I did not manage to compile the project. The Evlib seems to be missing some methods that are used by this project. (getCustomHead for example).

The changes are pretty simple. If you could compile the project on your side and merge this branch that would be awesome!

Of course, if any changes are required, feel free to let me know :)