mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-12-23 03:49:22 +01:00
Closes #885
This commit is contained in:
parent
c09ebe299a
commit
585777b9e0
2 changed files with 4 additions and 3 deletions
|
@ -98,6 +98,9 @@ public final class MiscCrafting{
|
|||
new ItemStack(InitItems.itemMisc, 1, TheMiscItems.QUARTZ.ordinal()),
|
||||
new ItemStack(Items.PRISMARINE_SHARD));
|
||||
ItemCrafting.recipeEnderStar = RecipeUtil.lastIRecipe();
|
||||
|
||||
//Spawner Shard -> ingot
|
||||
GameRegistry.addSmelting(new ItemStack(InitItems.itemMisc, 1, TheMiscItems.SPAWNER_SHARD.ordinal()), new ItemStack(Items.IRON_INGOT, 2), 5F);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -70,8 +70,6 @@ public class ItemFillingWand extends ItemEnergy{
|
|||
stack.getTagCompound().setInteger("state", Block.getStateId(state));
|
||||
}
|
||||
|
||||
//I think changing these to state ID is a good idea, but it will break all currently in-use wands, but whatever. It'll have to be done in 1.13 anyway.
|
||||
|
||||
private static IBlockState loadBlock(ItemStack stack){
|
||||
if(stack.hasTagCompound()){
|
||||
return Block.getStateById(stack.getTagCompound().getInteger("state"));
|
||||
|
@ -174,7 +172,7 @@ public class ItemFillingWand extends ItemEnergy{
|
|||
world.setBlockState(pos, replaceState, 2);
|
||||
|
||||
SoundType sound = replaceState.getBlock().getSoundType(replaceState, world, pos, player);
|
||||
world.playSound(null, pos, sound.getPlaceSound(), SoundCategory.BLOCKS, (sound.getVolume()+1.0F)/2.0F, sound.getPitch()*0.8F);
|
||||
world.playSound(null, pos, sound.getPlaceSound(), SoundCategory.BLOCKS, sound.getVolume()/2F + .5F, sound.getPitch()*0.8F);
|
||||
|
||||
if(!creative){
|
||||
this.extractEnergyInternal(stack, energyUse, false);
|
||||
|
|
Loading…
Reference in a new issue