From 1f6c4b47e2846221fe8072fbae4979647d4aa703 Mon Sep 17 00:00:00 2001 From: WayofTime Date: Tue, 8 Nov 2016 06:54:39 -0500 Subject: [PATCH] Fixed a crash with the Ritual Diviner when attempting to replace certain blocks. (#967) --- changelog.txt | 1 + src/main/java/WayofTime/bloodmagic/item/ItemRitualDiviner.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/changelog.txt b/changelog.txt index eba9a607..c156e786 100644 --- a/changelog.txt +++ b/changelog.txt @@ -14,6 +14,7 @@ Version 2.1.0-67 - Made it so peaceful animals provide more LP by default (to encourage creating your own farm). - Increased the effectiveness of animals for the Gathering of the Forsaken Souls ritual by a factor of 4. - Added the framework for the Purification Altar. +- Fixed a crash with the Ritual Diviner when attempting to replace certain blocks. ------------------------------------------------------ Version 2.1.0-66 diff --git a/src/main/java/WayofTime/bloodmagic/item/ItemRitualDiviner.java b/src/main/java/WayofTime/bloodmagic/item/ItemRitualDiviner.java index e94d3b57..3a4154a6 100644 --- a/src/main/java/WayofTime/bloodmagic/item/ItemRitualDiviner.java +++ b/src/main/java/WayofTime/bloodmagic/item/ItemRitualDiviner.java @@ -160,7 +160,7 @@ public class ItemRitualDiviner extends Item implements IVariantProvider RitualHelper.setRuneType(world, newPos, component.getRuneType()); return true; } - } else if (block.isAir(state, world, newPos) || block.isReplaceable(world, pos)) + } else if (block.isAir(state, world, newPos) || block.isReplaceable(world, newPos)) { if (!consumeStone(stack, world, player)) {