From 56064d9951c7299a6d4a68e0298428dc8971640f Mon Sep 17 00:00:00 2001 From: Tombenpotter Date: Fri, 26 Sep 2014 21:49:15 +0200 Subject: [PATCH] Some changes to the placing ritual --- .../tombenpotter/sanguimancy/rituals/RitualEffectPlacer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/tombenpotter/sanguimancy/rituals/RitualEffectPlacer.java b/src/main/java/tombenpotter/sanguimancy/rituals/RitualEffectPlacer.java index 0cd0bb8..7f86c63 100644 --- a/src/main/java/tombenpotter/sanguimancy/rituals/RitualEffectPlacer.java +++ b/src/main/java/tombenpotter/sanguimancy/rituals/RitualEffectPlacer.java @@ -56,9 +56,9 @@ public void performEffect(IMasterRitualStone ritualStone) { for (int i = x - 2; i <= x + 2; i++) { for (int k = z - 2; k <= z + 2; k++) { for (int inv = 0; inv < tileEntity.getSizeInventory(); inv++) { - if (world.getBlock(i, y, k).isReplaceable(world, i, y, k) && tileEntity.getStackInSlot(inv) != null) { + if (world.getBlock(i, y + 1, k).isReplaceable(world, i, y + 1, k) && tileEntity.getStackInSlot(inv) != null) { if (tileEntity.getStackInSlot(inv).getItem() instanceof ItemBlock) { - world.setBlock(i, y, k, Block.getBlockFromItem(tileEntity.getStackInSlot(inv).getItem()), tileEntity.getStackInSlot(inv).getItemDamage(), 3); + world.setBlock(i, y + 1, k, Block.getBlockFromItem(tileEntity.getStackInSlot(inv).getItem()), tileEntity.getStackInSlot(inv).getItemDamage(), 3); if (tileEntity.getStackInSlot(inv).stackSize > 1) { tileEntity.getStackInSlot(inv).stackSize = tileEntity.getStackInSlot(inv).stackSize - 1; } else tileEntity.setInventorySlotContents(inv, null);