Fixed version method always retuning nil

This commit is contained in:
LemADEC 2015-11-15 20:47:46 +01:00
parent 1660d37fbe
commit ad88bc076c

View file

@ -189,7 +189,7 @@ public abstract class TileEntityAbstractInterfaced extends TileEntityAbstractBas
// Return version
public Object[] version(Object[] arguments) {
String[] strings = WarpDrive.VERSION.split(".");
String[] strings = WarpDrive.VERSION.split("-")[0].split("\\.");
ArrayList<Integer> integers = new ArrayList(strings.length);
for (String string : strings) {
integers.add(Integer.parseInt(string));