From f00515ba2e392bd9a9ce4d5a812307a0db0b2936 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Fri, 1 Feb 2013 20:11:12 +0000 Subject: Updated MagicCarpet to work with current API git-svn-id: http://mc-server.googlecode.com/svn/trunk@1185 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- MCServer/Plugins/MagicCarpet/objects.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'MCServer/Plugins/MagicCarpet/objects.lua') diff --git a/MCServer/Plugins/MagicCarpet/objects.lua b/MCServer/Plugins/MagicCarpet/objects.lua index 30528cc42..7c19fc232 100644 --- a/MCServer/Plugins/MagicCarpet/objects.lua +++ b/MCServer/Plugins/MagicCarpet/objects.lua @@ -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 -- cgit v1.2.3