Skip to content

Conversation

@lonelyicer
Copy link
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings June 9, 2025 15:29
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR improves the toilet plug functionality and introduces a new toilet linker feature.

  • Refactors language keys to use a consistent tooltip key ("tooltip.poopsky.item.info_0") across all locales.
  • Updates item class names and associated constants to improve naming consistency (e.g., ToiletPlugItem, ToiletLinkerItem, PoopItem, PoopBallItem).
  • Removes the deprecated Plug.java file and updates functionality in related network and block/entity classes.

Reviewed Changes

Copilot reviewed 23 out of 23 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/main/resources/assets/poopsky/lang/*.json Updated tooltip key consistency for toilet plug/linker messages.
src/main/java/com/altnoir/poopsky/network/PlugActionPayload.java Updated references to use the new constant TOILET_PLUG.
src/main/java/com/altnoir/poopsky/item/ToiletPlugItem.java Refactored plug item to use the updated constant and class naming.
src/main/java/com/altnoir/poopsky/item/ToiletLinkerItem.java Added linking functionality with enhanced state management and messaging.
src/main/java/com/altnoir/poopsky/item/PoopItem.java, PoopBallItem.java Renamed classes for clearer intent.
src/main/java/com/altnoir/poopsky/item/PSItems.java Replaced old naming with consistent uppercase constant names.
src/main/java/com/altnoir/poopsky/item/PSBaseItem.java Provided improved shift key detection for tooltip rendering.
src/main/java/com/altnoir/poopsky/entity/p/ToiletPlugEntity.java, PSItemModelProvider.java, ToiletComponent.java, PSComponents.java, ToiletBlockEntity.java, AbstractToiletBlock.java Adjustments to support new linking and plug functionality.
Comments suppressed due to low confidence (1)

src/main/java/com/altnoir/poopsky/item/ToiletPlugItem.java:55

  • Instead of returning the result of super.useOn(context), consider explicitly returning InteractionResult.SUCCESS (or another appropriate InteractionResult) so that the plug placement behavior is clearly defined.
return super.useOn(context);

@lonelyicer lonelyicer merged commit e45710c into Altnoir:1.21.1-NeoForge Jun 9, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant