K2: Fix crash due to wrong call of get_setting

This commit is contained in:
Simon Brodtmann 2026-03-11 23:41:09 +01:00
parent 383fca46b5
commit 746d949dfd

View file

@ -16,7 +16,7 @@ if util.me.ammo() then
end
table.insert(mag, {type="fluid", name="heavy-oil", amount=ct})
if not util.k2() or not util.get_setting("kr-more-realistic-weapon") then
if not util.k2() or not util.me.get_setting("kr-more-realistic-weapon") then
table.insert(mag, util.item("piercing-rounds-magazine", ct))
data:extend({