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:
Joachim Stolberg 2024-06-30 10:50:37 +02:00 committed by GitHub
commit 923164c17c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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