Code cleanup

This commit is contained in:
LemADEC 2016-04-07 10:48:57 +02:00
parent a83a0a59a6
commit 2be75f4a87
3 changed files with 9 additions and 0 deletions

View file

@ -98,6 +98,7 @@ public abstract class TileEntityAbstractInterfaced extends TileEntityAbstractBas
}
}
}
@Override
public void validate() {
if (WarpDriveConfig.isComputerCraftLoaded) {

View file

@ -365,6 +365,8 @@ function common_event(eventName, param)
if eventName == "redstone" then
redstone_event(param)
elseif eventName == "timer" then
elseif eventName == "shipCoreCooldownDone" then
ShowWarning("Ship core cooldown done")
else
return false
end

View file

@ -347,6 +347,12 @@ function common_event(eventName, param)
if eventName == "redstone" then
-- redstone_event(param)
elseif eventName == "timer" then
elseif eventName == "shipCoreCooldownDone" then
ShowWarning("Ship core cooldown done")
elseif eventName == "component_added" then
-- ShowWarning("Event '" .. eventName .. "', " .. param .. " is unsupported")
elseif eventName == "component_removed" then
-- ShowWarning("Event '" .. eventName .. "', " .. param .. " is unsupported")
else
return false
end