This commit is contained in:
Olof Larsson 2015-01-12 11:20:52 +01:00
parent eeb0344d9c
commit fdaa144a18

2
s2b.rb
View file

@ -119,7 +119,7 @@ def schematicToBO2(schematic, zoffset)
rows.each_with_index do |columns, x| rows.each_with_index do |columns, x|
x -= schematic["Width"] / 2 # Center the object on the X axis x -= schematic["Width"] / 2 # Center the object on the X axis
columns.each_with_index do |(block, data), y| columns.each_with_index do |(block, data), y|
if block == 0 || 63 || (block == 35 && (data == 2 || data == 11)) then # We ignore air, standing sign, magentawool and (dark) blue wool if block == 0 || block == 63 || (block == 35 && (data == 2 || data == 11)) then # We ignore air, standing sign, magentawool and (dark) blue wool
next next
end end
y -= schematic["Length"] / 2 # Center the object on the Y axis y -= schematic["Length"] / 2 # Center the object on the Y axis