Skip to content

Commit

Permalink
Properly detect endless resources.
Browse files Browse the repository at this point in the history
  • Loading branch information
narc0tiq committed Oct 1, 2015
1 parent 9272bd4 commit 7eccc20
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions resmon.lua
Original file line number Diff line number Diff line change
Expand Up @@ -331,10 +331,10 @@ function resmon.is_endless_resource(ent_name, proto)

if not proto then return false end

if proto.minimum_resource_amount < 1 then
resmon.endless_resources[ent_name] = false
else
if proto.infinite_resource then
resmon.endless_resources[ent_name] = true
else
resmon.endless_resources[ent_name] = false
end

return resmon.endless_resources[ent_name]
Expand Down

0 comments on commit 7eccc20

Please sign in to comment.