From 2d72bddc184248c34c44fbdf185a9d0dbfe72786 Mon Sep 17 00:00:00 2001 From: Vasco Lavos Date: Sun, 2 Feb 2014 12:39:03 +0000 Subject: [PATCH] Added fanciness to the bore focus. --- MODSRC/vazkii/botania/common/item/ItemLens.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/MODSRC/vazkii/botania/common/item/ItemLens.java b/MODSRC/vazkii/botania/common/item/ItemLens.java index 52a3406e8..c30a6b298 100644 --- a/MODSRC/vazkii/botania/common/item/ItemLens.java +++ b/MODSRC/vazkii/botania/common/item/ItemLens.java @@ -189,6 +189,8 @@ public class ItemLens extends ItemMod implements ILens { if(!burst.hasAlreadyCollidedAt(x, y, z)) { if(!burst.isFake() && !entity.worldObj.isRemote) { world.setBlockToAir(x, y, z); + entity.worldObj.playAuxSFX(2001, x, y, z, id + (meta << 12)); + for(ItemStack stack_ : items) world.spawnEntityInWorld(new EntityItem(world, x + 0.5, y + 0.5, z + 0.5, stack_)); } @@ -196,7 +198,7 @@ public class ItemLens extends ItemMod implements ILens { if(!burst.isFake()) burst.setMana(mana - 64); } - + dead = false; } break; @@ -215,7 +217,7 @@ public class ItemLens extends ItemMod implements ILens { } } } - + return dead; }