Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Vilsu221 committed Jan 15, 2025
1 parent a24f3dd commit dacc574
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ neoforge-minecraft = "1.21.4"

sponge-minecraft = "1.21.4"
# https://repo.spongepowered.org/service/rest/repository/browse/maven-public/org/spongepowered/spongeapi/
sponge-api = "14.0.0-20241229.134205-2"
sponge-api = "14.0.0-20250114.224746-4"
sponge-api-major = "14"

# https://parchmentmc.org/docs/getting-started; note that we use older MC versions some times which is OK
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ public <B extends BlockStateHolder<B>> boolean setBlock(BlockVector3 position, B
.withBlocksMoving(false)
.withForcedReRender(false)
.withIgnoreRender(false)
.withPerformBlockDestruction(false)
);
if (!didSet) {
// still update NBT if the block is the same
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public void onPlayerInteractBlockPrimary(InteractBlockEvent.Primary.Start event,
}

@Listener
public void onPlayerInteractBlockSecondary(InteractBlockEvent.Secondary event, @Root ServerPlayer spongePlayer) {
public void onPlayerInteractBlockSecondary(InteractBlockEvent.Secondary.Pre event, @Root ServerPlayer spongePlayer) {
if (skipInteractionEvent(event)) {
return;
}
Expand Down

0 comments on commit dacc574

Please sign in to comment.