From 42f1cf9a079c5cc94e29d6d521fc0e8ce2bd5acd Mon Sep 17 00:00:00 2001 From: Petr Mikheev Date: Sat, 17 Jun 2023 20:11:35 +0200 Subject: [PATCH] Simplify cellhandlers.lua --- files/data/scripts/omw/cellhandlers.lua | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/files/data/scripts/omw/cellhandlers.lua b/files/data/scripts/omw/cellhandlers.lua index dc93af7e05..03dbc55e34 100644 --- a/files/data/scripts/omw/cellhandlers.lua +++ b/files/data/scripts/omw/cellhandlers.lua @@ -20,11 +20,7 @@ local function getRandomOffset() end local function getPlayerLevel() - for i, actor in pairs(world.activeActors) do - if (types.Player.objectIsInstance(actor)) then - return types.Player.stats.level(actor).current - end - end + return types.Player.stats.level(world.players[1]).current end local function spawnFish(cell)