Skip to content
Permalink
Browse files

Fix assignation of offBlock in MultipleSetBlock IC

  • Loading branch information...
Bieito Beceiro Fernández authored and me4502 committed Jul 28, 2019
1 parent 07241af commit 8e461b536b6be891895ab3b3803a64743d987b5f
@@ -68,11 +68,7 @@ public void load() {

onBlock = BlockSyntax.getBukkitBlock(blocks[0]);

if(blocks.length > 1) {
onBlock = BlockSyntax.getBukkitBlock(blocks[1]);
} else {
offblock = Material.AIR.createBlockData();
}
offblock = (blocks.length > 1) ? BlockSyntax.getBukkitBlock(blocks[1]) : Material.AIR.createBlockData();

x += Integer.parseInt(coords[0]);
y += Integer.parseInt(coords[1]);

0 comments on commit 8e461b5

Please sign in to comment.
You can’t perform that action at this time.