From ca0ab2edfe30a04fd8d2598611008b0b4ecc7ae6 Mon Sep 17 00:00:00 2001 From: bgkillas Date: Sat, 2 Nov 2024 13:20:49 -0400 Subject: [PATCH] fix wrong component name --- quant.ew/files/system/notplayer_ai/notplayer_ai.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quant.ew/files/system/notplayer_ai/notplayer_ai.lua b/quant.ew/files/system/notplayer_ai/notplayer_ai.lua index 7d25737d..543b964e 100644 --- a/quant.ew/files/system/notplayer_ai/notplayer_ai.lua +++ b/quant.ew/files/system/notplayer_ai/notplayer_ai.lua @@ -174,7 +174,7 @@ local function find_new_wand() if not state.is_electric_immune and ComponentGetValue2(state.damage_model, "mLiquidCount") > 10 and (EntityGetFirstComponent(child, "ElectricChargeComponent") ~= nil - or EntityGetFirstComponent(child, "ElectricSourceComponent") ~= nil) then + or EntityGetFirstComponent(child, "ElectricitySourceComponent") ~= nil) then if state.bad_wands[state.target or 1] == nil then state.bad_wands[state.target or 1] = {} end