Integrated last changes
This commit is contained in:
parent
c73f68569f
commit
5c595e39b1
1 changed files with 4 additions and 4 deletions
|
@ -170,12 +170,12 @@ function ShowInfo()
|
|||
Show("Core:")
|
||||
Show(" x, y, z = "..X..", "..Y..", "..Z)
|
||||
local energy = warp.get_energy_level()
|
||||
local energyMax = 1000000
|
||||
if warpcore.get_energy_max ~= nil then
|
||||
energyMax = warpcore.get_energy_max()
|
||||
local energyMax = 100000000
|
||||
if warp.get_energy_max ~= nil then
|
||||
energyMax = warp.get_energy_max()
|
||||
if energyMax == nil then energyMax = 1 end
|
||||
end
|
||||
Show(" Energy = "..math.floor(energy / 1000000).." % ("..energy.."EU)")
|
||||
Show(" Energy = "..math.floor(energy / energyMax).." % ("..energy.."EU)")
|
||||
Show(" Attached players = "..warp.get_attached_players())
|
||||
Show("Dimensions:")
|
||||
Show(" Front, Right, Up = "..GFront..", "..GRight..", "..GUp)
|
||||
|
|
Loading…
Reference in a new issue