Fix Transparent Technical Blocks requiring Silk Touch (#50)

No other of the 30 Technical Block Chisel block set have this requirement.
This commit is contained in:
DrParadox7 authored and GitHub committed 2024-07-08 08:38:23 +07:00
1 parent 6788f10a3e
commit b610b590a2
1 file changed
+7
@@ -1,6 +1,8 @@
package team.chisel.block;
import java.util.List;
import java.util.Objects;
import java.util.Random;
import net.minecraft.block.Block;
import net.minecraft.block.BlockGlass;
@@ -105,4 +107,9 @@ public class BlockCarvableGlass extends BlockGlass implements ICarvable {
public int getRenderBlockPass() {
return isAlpha ? 1 : 0;
}
@Override
public int quantityDropped(Random random) {
return Objects.equals(this.getUnlocalizedName(), "tile.chisel.technical2") ? 1 : 0;
}
}