mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-24 22:14:44 +00:00
Minor cleanup and fixes
This commit is contained in:
1 parent
3bb678258f
commit
14c107ab71
30 files changed
+87
-117
No files matched your search
@@ -18,7 +18,6 @@ import forestry.arboriculture.IWoodTyped;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.SoundType;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.block.properties.IProperty;
|
||||
import net.minecraft.block.properties.PropertyBool;
|
||||
import net.minecraft.block.state.BlockStateContainer;
|
||||
import net.minecraft.block.state.IBlockState;
|
||||
@@ -204,7 +203,7 @@ public class BlockShrubLog extends Block implements IWoodTyped, IStateMapperRegi
|
||||
@Override
|
||||
public List<ItemStack> getDrops(IBlockAccess world, BlockPos pos, IBlockState state, int fortune) {
|
||||
Random rand = world instanceof World ? ((World)world).rand : RANDOM;
|
||||
List<ItemStack> ret = new java.util.ArrayList<ItemStack>();
|
||||
List<ItemStack> ret = new java.util.ArrayList<>();
|
||||
float chance = 0.75F;
|
||||
int amount = 2;
|
||||
while(chance >= rand.nextFloat()){
|
||||
@@ -272,7 +271,7 @@ public class BlockShrubLog extends Block implements IWoodTyped, IStateMapperRegi
|
||||
|
||||
@Override
|
||||
protected BlockStateContainer createBlockState() {
|
||||
return new BlockStateContainer(this, new IProperty[] { NORTH, EAST, WEST, SOUTH, FIREPROOF });
|
||||
return new BlockStateContainer(this, NORTH, EAST, WEST, SOUTH, FIREPROOF);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user