mirror of
https://github.com/PixelGuys/Cubyz.git
synced 2025-08-03 03:06:55 -04:00
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:
parent
31d62f77ee
commit
7aa35798be
@ -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");
|
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.
|
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();
|
damage -= block.blockResistance();
|
||||||
if(damage > 0) {
|
if(damage > 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user