From 0ec5c193b8c41c2156761ffc8b993494853d8bb8 Mon Sep 17 00:00:00 2001 From: Olof Larsson Date: Mon, 12 Jan 2015 08:44:52 +0100 Subject: [PATCH] Add some new block ignores. --- readme.md | 0 s2b.rb | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 readme.md mode change 100644 => 100755 s2b.rb diff --git a/readme.md b/readme.md old mode 100644 new mode 100755 diff --git a/s2b.rb b/s2b.rb old mode 100644 new mode 100755 index fb15290..a3fc49a --- a/s2b.rb +++ b/s2b.rb @@ -104,7 +104,7 @@ def schematicToBO2(schematic, zoffset) rows.each_with_index do |columns, x| x -= schematic["Width"] / 2 # Center the object on the X axis columns.each_with_index do |(block, data), y| - if block == 0 || (block == 35 && (data == 2 || data == 11)) then # We ignore air and magentawool + if block == 0 || 63 || (block == 35 && (data == 2 || data == 11)) then # We ignore air, standing sign, magentawool and (dark) blue wool next end y -= schematic["Length"] / 2 # Center the object on the Y axis