mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-10-15 06:54:54 +02:00
introduce changes from streamside fork
This commit is contained in:
@@ -9,7 +9,7 @@ function Game.removeItemsOnMap(position)
|
||||
local i = 0
|
||||
while i < tileCount do
|
||||
local tileItem = tile:getThing(i)
|
||||
if tileItem and not tileItem:isCreature() and ItemType(tileItem:getId()):isMovable() then
|
||||
if tileItem and tileItem:getType():isMovable() then
|
||||
tileItem:remove()
|
||||
else
|
||||
i = i + 1
|
||||
@@ -24,10 +24,8 @@ function Game.transformItemOnMap(position, itemId, toItemId, subtype)
|
||||
|
||||
local tile = Tile(position)
|
||||
local item = tile:getItemById(itemId)
|
||||
if item ~= nil then
|
||||
item:transform(toItemId, subtype)
|
||||
item:decay()
|
||||
end
|
||||
item:transform(toItemId, subtype)
|
||||
item:decay()
|
||||
return item
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user