Skip to content

Commit

Permalink
Some changes to the placing ritual
Browse files Browse the repository at this point in the history
  • Loading branch information
Tombenpotter committed Sep 26, 2014
1 parent a986191 commit 56064d9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 56064d9

Please sign in to comment.