Skip to content

Commit

Permalink
Fix wrong success being used
Browse files Browse the repository at this point in the history
  • Loading branch information
Patbox committed Nov 10, 2024
1 parent 16a65ac commit b90d850
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ private ActionResult onUseItem(ServerPlayerEntity player, Hand hand) {

player.sendMessage(message, false);

return ActionResult.SUCCESS;
return ActionResult.SUCCESS_SERVER;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/xyz/nucleoid/plasmid/impl/Plasmid.java
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ private void registerCallbacks() {
&& hand == Hand.MAIN_HAND
) {
if (portalInterface.interactWithPortal(serverPlayer)) {
return ActionResult.SUCCESS;
return ActionResult.SUCCESS_SERVER;
}
}

Expand Down

0 comments on commit b90d850

Please sign in to comment.