Fix bug when submarine places with disabled hull strenght. Fix bad description in settings.txt
parent
8ad181b79c
commit
3d39ea92be
6
init.lua
6
init.lua
|
@ -845,8 +845,10 @@ nautilus.on_place = function(itemstack, placer, pointed_thing)
|
|||
if nautilus.hull_deep_limit then
|
||||
ent.deep_limit = item_def.deep_limit
|
||||
end
|
||||
local wear = (65535-itemstack:get_wear())/65535
|
||||
ent.hull_integrity = item_def.hull_integrity*wear
|
||||
if item_def.hull_integrity then
|
||||
local wear = (65535-itemstack:get_wear())/65535
|
||||
ent.hull_integrity = item_def.hull_integrity*wear
|
||||
end
|
||||
ent.item = itemstack:to_string()
|
||||
boat:set_yaw(placer:get_look_horizontal())
|
||||
itemstack:take_item()
|
||||
|
|
|
@ -7,7 +7,7 @@ nautilus_fuel_consumption (Fuel consumption ratio) int 6000 1
|
|||
|
||||
# Enable/disable limited air in submarine
|
||||
# default is enabled if vacuum mode is enabled, othervise disabled
|
||||
nautilus_air (Max fuel units) bool true
|
||||
nautilus_air (Enable air limit in submarine) bool true
|
||||
|
||||
# Air capacity of nautilus submarine.
|
||||
# 1 unit per second is consumed
|
||||
|
|
Loading…
Reference in New Issue