Skip to content

Commit 50654c6

Browse files
committed
Fix stuff
1 parent 1614f38 commit 50654c6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

common/src/main/java/com/lambda/mixin/world/WorldMixin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@
3131
public abstract class WorldMixin {
3232
@Inject(method = "onBlockChanged", at = @At("TAIL"))
3333
void onBlockChanged(BlockPos pos, BlockState oldBlock, BlockState newBlock, CallbackInfo ci) {
34-
EventFlow.post(new WorldEvent.BlockUpdateClientSide(pos, oldBlock, newBlock));
34+
EventFlow.post(new WorldEvent.BlockUpdate.Client(pos, oldBlock, newBlock));
3535
}
3636
}

common/src/main/kotlin/com/lambda/task/tasks/BuildTask.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ class BuildTask @Ta5kBuilder constructor(
167167
is Resolvable -> {
168168
LOG.info("Resolving: ${bestResult.name}")
169169

170-
bestResult.resolve().execute(this@BuildTask, pauseParent = bestResult.pausesParent)
170+
bestResult.resolve().execute(this@BuildTask, pauseParent = true)
171171
}
172172
}
173173
}
@@ -197,8 +197,8 @@ class BuildTask @Ta5kBuilder constructor(
197197

198198
listen<WorldEvent.BlockUpdate.Server> { event ->
199199
pendingInteractions.firstOrNull { it.expectedPos == event.pos }?.let { context ->
200-
if (!context.targetState.matches(event.newState, event.pos, world)) return@let
201200
pendingInteractions.remove(context)
201+
if (!context.targetState.matches(event.newState, event.pos, world)) return@let
202202
when (context) {
203203
is BreakContext -> breaks++
204204
is PlaceContext -> placements++

0 commit comments

Comments
 (0)