mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 11:49:37 +00:00
Tiny Potato heart particles, because why the f not.
This commit is contained in:
1 parent
5c3dfc9de5
commit
2111f3298d
1 file changed
+3
-1
@@ -52,8 +52,10 @@ public class BlockTinyPotato extends BlockModContainer implements ILexiconable {
|
||||
@Override
|
||||
public boolean onBlockActivated(World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer, int par6, float par7, float par8, float par9) {
|
||||
TileEntity tile = par1World.getTileEntity(par2, par3, par4);
|
||||
if(tile instanceof TileTinyPotato)
|
||||
if(tile instanceof TileTinyPotato) {
|
||||
((TileTinyPotato) tile).jump();
|
||||
par1World.spawnParticle("heart", par2 + minX + Math.random() * (maxX - minX), par3 + maxY, par4 + minZ + Math.random() * (maxZ - minZ), 0, 0 ,0);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user