ParticleEffect versioning bug fix.

This is a partial bug fix until it is updated in the main repor for the library.
Sometimes the version was not gotten adn was the default 0.
This will make sure that the version is always loaded.
This commit is contained in:
Magnus Ulf 2015-03-21 17:06:57 +01:00 committed by Olof Larsson
parent 30f07c92a9
commit ce7a9a2226

View File

@ -1409,6 +1409,11 @@ public enum ParticleEffect {
* @return The version number
*/
public static int getVersion() {
// MASSIVECORE MODIFICATION START (Ensure initialized)
if (!initialized) {
initialize();
}
// MASSIVECORE MODIFICATION END (Ensure initialized)
return version;
}