From 3b28b09066be11ec8e6a69641b74a366ad7f927a Mon Sep 17 00:00:00 2001 From: LeMagnesium Date: Thu, 15 Jan 2015 23:27:03 +0100 Subject: [PATCH] Loads of fixs --- mods/builtin_falling/func.lua | 2 +- mods/sea/clams/init.lua | 2 +- mods/snow/src/mapgen_v6.lua | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mods/builtin_falling/func.lua b/mods/builtin_falling/func.lua index 5d2a714e..32b0b80e 100755 --- a/mods/builtin_falling/func.lua +++ b/mods/builtin_falling/func.lua @@ -169,7 +169,7 @@ function add_protected_bukket_liquid(nameofbukket,liquidsourcename) return end -- Check if pointing to a buildable node - n = minetest.get_node(pointed_thing.under) + local n = minetest.get_node(pointed_thing.under) if is_protected_area(pointed_thing.under, 7 ,user:get_player_name()) then minetest.chat_send_player(user:get_player_name(),"You cant place here - Too short of a protected area.") diff --git a/mods/sea/clams/init.lua b/mods/sea/clams/init.lua index d9e6a13d..c6f88f75 100755 --- a/mods/sea/clams/init.lua +++ b/mods/sea/clams/init.lua @@ -127,7 +127,7 @@ minetest.register_entity("clams:whiteshell", { self.phase = 0 end self.object:setsprite({x=0, y=self.phase}) - phasearmor = { + local phasearmor = { [0]={fleshy=0}, [1]={fleshy=30}, [2]={fleshy=70} diff --git a/mods/snow/src/mapgen_v6.lua b/mods/snow/src/mapgen_v6.lua index 414fddc2..9f9453ed 100755 --- a/mods/snow/src/mapgen_v6.lua +++ b/mods/snow/src/mapgen_v6.lua @@ -106,7 +106,7 @@ minetest.register_on_generated(function(minp, maxp, seed) local plain = biome == 2 -- spawns not much local alpine = biome == 3 -- rocky terrain -- Water biomes - biome2 = pr:next(1, 5) + local biome2 = pr:next(1, 5) local cool = biome == 1 -- only spawns ice on edge of water local icebergs = biome == 2 local icesheet = biome == 3