mirror of
https://github.com/minetest-mods/technic.git
synced 2025-07-05 01:30:37 +02:00
Fix missing get_meta
This commit is contained in:
@ -73,6 +73,7 @@ function technic.register_can(d)
|
|||||||
return itemstack
|
return itemstack
|
||||||
end,
|
end,
|
||||||
on_refill = function(stack)
|
on_refill = function(stack)
|
||||||
|
local meta = technic.get_stack_meta_compat_cans(stack)
|
||||||
meta:set_int("can_level", data.can_capacity)
|
meta:set_int("can_level", data.can_capacity)
|
||||||
set_can_wear(stack, data.can_capacity, data.can_capacity)
|
set_can_wear(stack, data.can_capacity, data.can_capacity)
|
||||||
return stack
|
return stack
|
||||||
|
Reference in New Issue
Block a user