Merge pull request #173 from Eternal-Study/Eternal-Study-patch-1
Add or minetest.registered_nodes[name] to Silo powder check.
This commit is contained in:
commit
923164c17c
@ -3,7 +3,7 @@
|
||||
TechAge
|
||||
=======
|
||||
|
||||
Copyright (C) 2019-2022 Joachim Stolberg
|
||||
Copyright (C) 2019-2024 Joachim Stolberg
|
||||
|
||||
AGPL v3
|
||||
See LICENSE.txt for more information
|
||||
@ -128,7 +128,7 @@ local tLiquid = {
|
||||
put = function(pos, indir, name, amount)
|
||||
-- check if it is powder
|
||||
local nvm = techage.get_nvm(pos)
|
||||
local ndef = minetest.registered_craftitems[name] or {}
|
||||
local ndef = minetest.registered_craftitems[name] or minetest.registered_nodes[name] or {}
|
||||
if ndef.groups and ndef.groups.powder == 1 then
|
||||
local inv = M(pos):get_inventory()
|
||||
local stack = ItemStack(name.." "..amount)
|
||||
|
Loading…
Reference in New Issue
Block a user