From afbace8af67d4a2a7b901728da8f9116f93d26d0 Mon Sep 17 00:00:00 2001 From: jj Date: Wed, 5 Sep 2012 19:18:21 +0200 Subject: [PATCH] ruby: alloc_building(:Furnace, :Smelter) --- plugins/ruby/building.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/ruby/building.rb b/plugins/ruby/building.rb index 398301b7a..e67605673 100644 --- a/plugins/ruby/building.rb +++ b/plugins/ruby/building.rb @@ -47,6 +47,7 @@ module DFHack bld = cls.cpp_new bld.race = ui.race_id subtype = WorkshopType.int(subtype) if subtype.kind_of?(::Symbol) and type == :Workshop + subtype = FurnaceType.int(subtype) if subtype.kind_of?(::Symbol) and type == :Furnace bld.setSubtype(subtype) if subtype != -1 bld.setCustomType(custom) if custom != -1 case type