Fixed version method always retuning nil
This commit is contained in:
parent
1660d37fbe
commit
ad88bc076c
1 changed files with 1 additions and 1 deletions
|
@ -189,7 +189,7 @@ public abstract class TileEntityAbstractInterfaced extends TileEntityAbstractBas
|
||||||
|
|
||||||
// Return version
|
// Return version
|
||||||
public Object[] version(Object[] arguments) {
|
public Object[] version(Object[] arguments) {
|
||||||
String[] strings = WarpDrive.VERSION.split(".");
|
String[] strings = WarpDrive.VERSION.split("-")[0].split("\\.");
|
||||||
ArrayList<Integer> integers = new ArrayList(strings.length);
|
ArrayList<Integer> integers = new ArrayList(strings.length);
|
||||||
for (String string : strings) {
|
for (String string : strings) {
|
||||||
integers.add(Integer.parseInt(string));
|
integers.add(Integer.parseInt(string));
|
||||||
|
|
Loading…
Reference in a new issue