Skip to content

Commit b88cdfb

Browse files
committed
Last fixes, and run formatter
1 parent b926ac4 commit b88cdfb

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/callbacks/block/server/decay.zig

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

src/server/BlockDrop.zig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ pub fn isDroppedWhenBrokenWithItem(self: @This(), item: Item) bool {
2929

3030
pub fn tryDropNaturally(self: @This(), modelIndex: ModelIndex, worldPos: Vec3i) void {
3131
if (!self.isDroppedWhenBrokenWithItem(.null)) return;
32+
3233
if (self.chance == 1 or main.random.nextFloat(&main.seed) < self.chance) {
3334
const model = modelIndex.model();
3435
for (self.itemStacks) |stack| {

0 commit comments

Comments
 (0)