Skip to content
This repository has been archived by the owner on Nov 21, 2017. It is now read-only.

Commit

Permalink
Check if the carbon and liquid fuel canister exist
Browse files Browse the repository at this point in the history
  • Loading branch information
Afforess committed Mar 21, 2016
1 parent 445b90a commit 92702d0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION := 1.0.0
VERSION := 1.0.1
NAME := marathon

all: clean build install_mod
Expand Down
2 changes: 1 addition & 1 deletion info.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "marathon",
"version": "1.0.0",
"version": "1.0.1",
"title": "Marathon Mod",
"author": "Benoit Girard & Afforess",
"contributors": ["Wulfson", "KeepOnDigging", "gheift"],
Expand Down
8 changes: 6 additions & 2 deletions prototypes/bobsmods/item.lua
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
data.raw.item["carbon"].fuel_value = "2.5MJ"
data.raw.item["liquid-fuel-canister"].fuel_value = "50MJ"
if data.raw.item["carbon"] then
data.raw.item["carbon"].fuel_value = "2.5MJ"
end
if data.raw.item["liquid-fuel-canister"] then
data.raw.item["liquid-fuel-canister"].fuel_value = "50MJ"
end

0 comments on commit 92702d0

Please sign in to comment.