From 22050cd9a2a9ad48a719651b3f9f9d170d8bf6a7 Mon Sep 17 00:00:00 2001 From: Nicolas Lang Date: Sun, 13 Jun 2021 18:38:54 +0200 Subject: [PATCH] fixed lua error related to pipecovers --- changelog.txt | 4 ++++ info.json | 2 +- prototypes/tank-entity.lua | 5 +++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/changelog.txt b/changelog.txt index 7173edc..21db88b 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,8 @@ --------------------------------------------------------------------------------------------------- +Version: 0.0.2 + Bugfixes: + - fixed lua error related to pipecovers +--------------------------------------------------------------------------------------------------- Version: 0.0.1 Major Features: - Initial release. diff --git a/info.json b/info.json index 87f9d20..5d747d5 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "nco-SmallTank", - "version": "0.0.1", + "version": "0.0.2", "title": "Small Tank", "author": "Karoschl", "contact": "", diff --git a/prototypes/tank-entity.lua b/prototypes/tank-entity.lua index 7a425b7..55974c5 100644 --- a/prototypes/tank-entity.lua +++ b/prototypes/tank-entity.lua @@ -1,5 +1,6 @@ -local pipecovers = require("__base__/prototypes/entity/pipecovers") +require("__base__/prototypes/entity/pipecovers") local data = _G.data +local pipecoverspictures = _G.pipecoverspictures local circuit_connector_definitions = _G.circuit_connector_definitions local universal_connector_template = _G.universal_connector_template ------------------------------------------------------------------------------- @@ -39,7 +40,7 @@ local myStorageTank = { { position = {-1.5, -0.5}}, { position = {-1.5, 0.5}} }, - pipe_covers = pipecovers.pipecoverspictures(), + pipe_covers = pipecoverspictures(), }, flow_length_in_ticks = 1, pictures = {