Code cleanup

This commit is contained in:
LemADEC 2016-06-25 21:50:31 +02:00
parent 5608bc76e2
commit e293fd8002
2 changed files with 3 additions and 2 deletions

View file

@ -51,7 +51,8 @@ public abstract class TileEntityAbstractEnergy extends TileEntityAbstractInterfa
addMethods(new String[] { "energy" });
}
public Object[] getUpgrades()
@Deprecated
public Object[] getUpgrades_deprecated()
{
Object[] retVal = new Object[UpgradeType.values().length];
for(UpgradeType type : UpgradeType.values())

View file

@ -152,7 +152,7 @@ public class TileEntityChunkLoader extends TileEntityAbstractChunkLoading implem
shouldLoad = toBool(arguments[0]);
return new Object[]{shouldChunkLoad()};
case "upgrades":
return getUpgrades();
return getUpgrades_deprecated();
}
return super.callMethod(computer, context, method, arguments);