From 78be4a6470c2f08e64af76cc256332ff915a2caf Mon Sep 17 00:00:00 2001 From: Aaron Suen Date: Sat, 30 Aug 2014 14:22:41 -0400 Subject: [PATCH] Fixed some media file issues, fixed bug in heated coal block gas. --- sz_util/sz_pos.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sz_util/sz_pos.lua b/sz_util/sz_pos.lua index 06b464e..b6e6ec8 100644 --- a/sz_util/sz_pos.lua +++ b/sz_util/sz_pos.lua @@ -279,10 +279,15 @@ function sz_pos:light(...) end -- Get the metadata reference for this node position. -function sz_pos:meta(n) +function sz_pos:meta() return minetest.get_meta(self) end +-- Get the inventory for this node position. +function sz_pos:inv() + return self:meta():get_inventory() +end + -- Shortcuts for some minetest utility functions. sz_pos.node_swap = minetest.swap_node sz_pos.light = minetest.get_node_light