From 460eaeee010f11e96b1d72ec08d54541c65cc83b Mon Sep 17 00:00:00 2001 From: Wofsauge Date: Wed, 26 Feb 2025 22:49:46 +0100 Subject: [PATCH] Removed depricated variable "EID.isOnlineMultiplayer" --- main.lua | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/main.lua b/main.lua index de1ffb00..17fb9cfe 100644 --- a/main.lua +++ b/main.lua @@ -22,7 +22,6 @@ EID.coopMainPlayers = {} -- The primary Player Entity for each controller being EID.coopAllPlayers = {} -- Every Player Entity (includes Esau, T.Forgotten) EID.controllerIndexes = {} -- A table to map each controller index to their player number for coloring indicators EID.isMultiplayer = false -- Used to color P1's highlight/outline indicators (single player just uses white) -EID.isOnlineMultiplayer = false -- Set to true to disable code functions that might cause desyncs EID.BoC = {} -- general variables @@ -816,13 +815,6 @@ function EID:onNewRoom() end end EID:AddCallback(ModCallbacks.MC_POST_NEW_ROOM, EID.onNewRoom) - -function EID:onCmd(command, _) - if command == "netstart" then -- the game somehow propagates that command correctly to the callback... - EID.isOnlineMultiplayer = true - end -end -EID:AddCallback(ModCallbacks.MC_EXECUTE_CMD, EID.onCmd) --------------------------------------------------------------------------- ---------------------------Handle Rendering-------------------------------- @@ -1141,7 +1133,7 @@ EID:AddCallback(ModCallbacks.MC_POST_PICKUP_INIT, EID.CollectibleSpawnedThisFram local lastPathfindFrame = -1 local function attemptPathfind(entity) - if (EID.Config["DisableObstructionOnFlight"] and EID.player.CanFly) or EID.isOnlineMultiplayer then + if (EID.Config["DisableObstructionOnFlight"] and EID.player.CanFly) then pathsChecked[entity.InitSeed] = true return true end