fix bucket water load
This commit is contained in:
parent
484fe12d2d
commit
b751f470ab
@ -451,7 +451,7 @@ minetest.register_entity("steampunk_blimp:blimp", {
|
|||||||
|
|
||||||
|
|
||||||
if not has_passengers and toolcaps and toolcaps.damage_groups and
|
if not has_passengers and toolcaps and toolcaps.damage_groups and
|
||||||
toolcaps.groupcaps and toolcaps.groupcaps.choppy then
|
toolcaps.groupcaps and (toolcaps.groupcaps.choppy or toolcaps.groupcaps.axey_dig) then
|
||||||
|
|
||||||
local is_empty = true --[[false
|
local is_empty = true --[[false
|
||||||
local inventory = airutils.get_inventory(self)
|
local inventory = airutils.get_inventory(self)
|
||||||
|
@ -70,11 +70,14 @@ function steampunk_blimp.load_water(self, player)
|
|||||||
if water then
|
if water then
|
||||||
if self._water_level < steampunk_blimp.MAX_WATER then
|
if self._water_level < steampunk_blimp.MAX_WATER then
|
||||||
local itemstack
|
local itemstack
|
||||||
--inv:remove_item("main", itemstack)
|
--itmstck:set_count(1)
|
||||||
|
--inv:remove_item("main", itmstck)
|
||||||
|
|
||||||
local indx = item_name:find('bucket:bucket')
|
local bucket_name = 'bucket:bucket'
|
||||||
|
if airutils.is_mcl then bucket_name = "mcl_buckets:bucket" end
|
||||||
|
local indx = item_name:find(bucket_name)
|
||||||
if indx then
|
if indx then
|
||||||
itemstack = ItemStack("bucket:bucket_empty")
|
itemstack = ItemStack(bucket_name.."_empty")
|
||||||
--inv:add_item("main", itemstack)
|
--inv:add_item("main", itemstack)
|
||||||
player:set_wielded_item(itemstack)
|
player:set_wielded_item(itemstack)
|
||||||
end
|
end
|
||||||
|
3
init.lua
3
init.lua
@ -2,7 +2,8 @@ steampunk_blimp={}
|
|||||||
steampunk_blimp.gravity = tonumber(minetest.settings:get("movement_gravity")) or 9.8
|
steampunk_blimp.gravity = tonumber(minetest.settings:get("movement_gravity")) or 9.8
|
||||||
steampunk_blimp.trunk_slots = 50
|
steampunk_blimp.trunk_slots = 50
|
||||||
steampunk_blimp.fuel = {['default:coal_lump'] = {amount=1},['default:coalblock'] = {amount=10}}
|
steampunk_blimp.fuel = {['default:coal_lump'] = {amount=1},['default:coalblock'] = {amount=10}}
|
||||||
steampunk_blimp.water = {['default:water_source'] = {amount=1},['default:river_water_source'] = {amount=1}, ['bucket:bucket_water'] = {amount=1}, ['bucket:bucket_river_water'] = {amount=1}} --bucket:bucket_empty
|
steampunk_blimp.water = {['default:water_source'] = {amount=1},['default:river_water_source'] = {amount=1}, ['bucket:bucket_water'] = {amount=1},
|
||||||
|
['bucket:bucket_river_water'] = {amount=1}, ['mcl_buckets:bucket_water'] = {amount=1}, ['mcl_buckets:bucket_river_water'] = {amount=1}} --bucket:bucket_empty
|
||||||
steampunk_blimp.ideal_step = 0.02
|
steampunk_blimp.ideal_step = 0.02
|
||||||
steampunk_blimp.rudder_limit = 30
|
steampunk_blimp.rudder_limit = 30
|
||||||
steampunk_blimp.iddle_rotation = 0
|
steampunk_blimp.iddle_rotation = 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user