mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-14 15:11:05 +01:00
Fix some global variable fuckups
This commit is contained in:
parent
6388eb98f1
commit
dce02a9979
3 changed files with 5 additions and 3 deletions
|
@ -30,7 +30,7 @@ minetest.register_entity(":__builtin:item", {
|
|||
item_texture = minetest.registered_items[itemname].inventory_image
|
||||
item_type = minetest.registered_items[itemname].type
|
||||
end
|
||||
prop = {
|
||||
local prop = {
|
||||
is_visible = true,
|
||||
visual = "sprite",
|
||||
textures = {"unknown_item.png"}
|
||||
|
@ -108,7 +108,7 @@ minetest.register_entity(":__builtin:item", {
|
|||
--]]
|
||||
|
||||
if minetest.registered_nodes[name] and minetest.registered_nodes[name].liquidtype == "flowing" then
|
||||
get_flowing_dir = function(self)
|
||||
local get_flowing_dir = function(self)
|
||||
local pos = self.object:getpos()
|
||||
local param2 = minetest.get_node(pos).param2
|
||||
for i,d in ipairs({-1, 1, -1, 1}) do
|
||||
|
|
|
@ -118,6 +118,8 @@ minetest.after(0, init)
|
|||
local offset = {}
|
||||
local hoch = {}
|
||||
local bg = {}
|
||||
-- TODO: Investigate what is going on with this weird variable
|
||||
local start_i
|
||||
offset["blocks"] = "-0.29,-0.25"
|
||||
offset["deco"] = "0.98,-0.25"
|
||||
offset["redstone"] = "2.23,-0.25"
|
||||
|
|
|
@ -37,7 +37,7 @@ minetest.register_tool("throwing:bow", {
|
|||
return itemstack
|
||||
end,
|
||||
on_use = function(itemstack, user, pointed_thing)
|
||||
wear = itemstack:get_wear()
|
||||
local wear = itemstack:get_wear()
|
||||
itemstack:add_wear(wear)
|
||||
if throwing_shoot_arrow(itemstack, user, pointed_thing) then
|
||||
if not minetest.setting_getbool("creative_mode") then
|
||||
|
|
Loading…
Reference in a new issue