Make crude storage unit wood material closes #2360

This commit is contained in:
Justin Vitale 2021-03-30 00:56:16 +11:00
parent f02a156c8a
commit 80cc130330

View file

@ -25,6 +25,7 @@
package techreborn.blocks.storage.item; package techreborn.blocks.storage.item;
import net.minecraft.block.BlockState; import net.minecraft.block.BlockState;
import net.minecraft.block.Material;
import net.minecraft.block.entity.BlockEntity; import net.minecraft.block.entity.BlockEntity;
import net.minecraft.entity.player.PlayerEntity; import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.item.Item; import net.minecraft.item.Item;
@ -50,7 +51,7 @@ public class StorageUnitBlock extends BlockMachineBase {
public final TRContent.StorageUnit unitType; public final TRContent.StorageUnit unitType;
public StorageUnitBlock(TRContent.StorageUnit unitType) { public StorageUnitBlock(TRContent.StorageUnit unitType) {
super(); super((Settings.of(unitType.name.equals("crude") ? Material.WOOD : Material.METAL).strength(2.0F, 2.0F)));
this.unitType = unitType; this.unitType = unitType;
} }