250,
5,
true);
- /*
- EntityRegistry.registerGlobalEntityID(EntityDust.class,
- "Dust",
- ModLoader.getUniqueEntityId());
- */
this.api.addPyrolysisDecompositionFuel(new ItemStack(Item.coal), 2000*8);
}
@Override
public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World,
EntityPlayer par3EntityPlayer) {
- par2World.spawnEntityInWorld(new EntityDust(par2World,
- par3EntityPlayer.posX,
- par3EntityPlayer.posY,
- par3EntityPlayer.posZ));
+ if (!par2World.isRemote) {
+ par2World.spawnEntityInWorld(new EntityDust(par2World,
+ par3EntityPlayer.posX,
+ par3EntityPlayer.posY,
+ par3EntityPlayer.posZ));
+ par1ItemStack.stackSize--;
+ }
return par1ItemStack;
}
-
+
}