Fix chisel behavior for blocks with resistance

Until we have a proper tool for it #760 it should break the corners in one hit independently of resistance
This commit is contained in:
IntegratedQuantum 2025-07-20 22:46:37 +02:00
parent 31d62f77ee
commit 7aa35798be

View File

@ -1062,7 +1062,7 @@ pub const MeshSelection = struct { // MARK: MeshSelection
}
const isChisel = stack.item != null and stack.item.? == .baseItem and std.mem.eql(u8, stack.item.?.baseItem.id(), "cubyz:chisel");
if(isChisel and block.mode() == main.rotation.getByID("cubyz:stairs")) { // TODO: Remove once the chisel is a tool.
damage = block.blockHealth();
damage = block.blockHealth() + block.blockResistance();
}
damage -= block.blockResistance();
if(damage > 0) {