Skip to content

Commit

Permalink
Temporary removal of changeItem in gaia script just to verify that th…
Browse files Browse the repository at this point in the history
…is is in fact the source of the lag, to be reverted before the update goes live

I can not test this locally as my PC does not lag due to the gaia script like the dev server does.
  • Loading branch information
brightrim committed Jan 12, 2025
1 parent 4006abd commit babc316
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scheduled/gaia.lua
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,7 @@ local function PutPlantOnField(rare)
end

local myPlant = myList[groundType][math.random(1,#myList[groundType])]
local createdPlant = world:createItemFromId(myPlant,1,myPos,false,333,nil)
createdPlant.wear = 10
world:changeItem(createdPlant)
world:createItemFromId(myPlant,1,myPos,false,333,nil)
return true
end
end
Expand Down

0 comments on commit babc316

Please sign in to comment.