change old env:add_entity

master
AiTechEye 2018-07-22 07:47:16 +02:00 committed by GitHub
parent 26d5b33b86
commit b3761d355c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -253,7 +253,7 @@ smartshop.update=function(pos,stat)
if item~="" then
smartshop.tmp.item=item
smartshop.tmp.pos=spos
local e = minetest.env:add_entity({x=pos.x+pos2.x,y=pos.y+pos2.y,z=pos.z+pos2.z},"smartshop:item")
local e = minetest.add_entity({x=pos.x+pos2.x,y=pos.y+pos2.y,z=pos.z+pos2.z},"smartshop:item")
e:setyaw(math.pi*2 - node.param2 * math.pi/2)
end
end