Skip to content

Commit abaca9c

Browse files
committed
Last fixes, and run formatter
1 parent cc6c420 commit abaca9c

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/blocks.zig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ pub const BlockDrop = struct {
5757

5858
pub fn tryDropNaturally(self: BlockDrop, modelIndex: ModelIndex, worldPos: Vec3i) void {
5959
if (!self.isDroppedWhenBrokenWithItem(.null)) return;
60+
6061
if (self.chance == 1 or main.random.nextFloat(&main.seed) < self.chance) {
6162
const model = modelIndex.model();
6263
for (self.items) |stack| {

src/callbacks/block/server/decay.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ pub fn run(self: *@This(), params: main.callbacks.ServerBlockCallback.Params) ma
136136
if (world.cmpxchgBlock(wx, wy, wz, leaf, self.decayReplacement) == null) {
137137
const modelIndex = params.block.mode().model(params.block);
138138
for (self.blockDrops) |drop| {
139-
drop.tryDropNaturally(modelIndex,.{wx, wy, wz});
139+
drop.tryDropNaturally(modelIndex, .{wx, wy, wz});
140140
}
141141
return .handled;
142142
}

0 commit comments

Comments
 (0)