Fix bug when submarine places with disabled hull strenght. Fix bad description in settings.txt

master
SFENCE 2021-06-13 09:25:04 +02:00
parent 8ad181b79c
commit 3d39ea92be
2 changed files with 5 additions and 3 deletions

View File

@ -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()

View File

@ -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