From fbc4cc851125bc0a1d48043f78210f4836491beb Mon Sep 17 00:00:00 2001
From: thetaepsilon-gamedev <32034735+thetaepsilon-gamedev@users.noreply.github.com>
Date: Tue, 28 Jan 2020 21:38:13 +0100
Subject: [PATCH] technic_cnc/cnc.lua: Fix access to non-existant stack parameter (#528)

---
 technic/machines/power_monitor.lua |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/technic/machines/power_monitor.lua b/technic/machines/power_monitor.lua
index 4d722a2..7e8b850 100644
--- a/technic/machines/power_monitor.lua
+++ b/technic/machines/power_monitor.lua
@@ -55,7 +55,7 @@
 			local demand = sw_meta:get_int("demand")
 			meta:set_string("infotext",
 					S("Power Monitor. Supply: @1 Demand: @2",
-					technic.pretty_num(supply), technic.pretty_num(demand)))
+					technic.EU_string(supply), technic.EU_string(demand)))
 		else
 			meta:set_string("infotext",S("Power Monitor Has No Network"))
 		end

--
Gitblit v1.8.0