From 14822e9e6b4f3df4904c58b130ac095fe53d0bd9 Mon Sep 17 00:00:00 2001 From: crabman77 Date: Mon, 23 Mar 2015 19:48:26 +0100 Subject: [PATCH] fix typo --- mods/christmas_craft/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/christmas_craft/init.lua b/mods/christmas_craft/init.lua index d469eace..aba5ac31 100644 --- a/mods/christmas_craft/init.lua +++ b/mods/christmas_craft/init.lua @@ -714,7 +714,7 @@ snowball_VELOCITY=19 --Shoot snowball. local snow_shoot_snowball=function (item, player, pointed_thing) local playerpos=player:getpos() - local obj=minetestadd_entity({x=playerpos.x,y=playerpos.y+1.5,z=playerpos.z}, "christmas_craft:snowball_entity") + local obj=minetest.add_entity({x=playerpos.x,y=playerpos.y+1.5,z=playerpos.z}, "christmas_craft:snowball_entity") local dir=player:get_look_dir() obj:setvelocity({x=dir.x*snowball_VELOCITY, y=dir.y*snowball_VELOCITY, z=dir.z*snowball_VELOCITY}) obj:setacceleration({x=dir.x*-3, y=-snowball_GRAVITY, z=dir.z*-3})