1
0

Updated MagicCarpet to work with current API

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1185 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
madmaxoft@gmail.com
2013-02-01 20:11:12 +00:00
parent 0be125aa07
commit f00515ba2e
2 changed files with 27 additions and 9 deletions

View File

@@ -52,7 +52,7 @@ function cCarpet:new()
end
function cCarpet:remove()
local World = cRoot:Get():GetWorld()
local World = cRoot:Get():GetDefaultWorld()
for i, fib in ipairs( self.Fibers ) do
local x = self.Location.x + fib.x
local y = self.Location.y + fib.y
@@ -66,7 +66,7 @@ function cCarpet:remove()
end
function cCarpet:draw()
local World = cRoot:Get():GetWorld()
local World = cRoot:Get():GetDefaultWorld()
for i, fib in ipairs( self.Fibers ) do
local x = self.Location.x + fib.x
local y = self.Location.y + fib.y