Skip to content

Conversation

@illyrius666
Copy link
Member

@illyrius666 illyrius666 commented Jan 13, 2026

Description

How Has This Been Tested?

  • Unit tests
  • Integration tests
  • Manual testing
  • Other (please describe)

Signed-off-by: Illyrius <FitimQ@live.nl>
Signed-off-by: Illyrius <FitimQ@live.nl>
@illyrius666 illyrius666 self-assigned this Jan 13, 2026
@github-actions github-actions bot changed the base branch from main to dev January 13, 2026 16:50
@github-actions github-actions bot changed the title Fix/replant enchantment/seed usage fix/ReplantEnchantment/SeedUsage Jan 13, 2026
@illyrius666 illyrius666 marked this pull request as ready for review January 13, 2026 16:50
Copilot AI review requested due to automatic review settings January 13, 2026 16:50
@illyrius666 illyrius666 merged commit 355f840 into dev Jan 13, 2026
6 of 8 checks passed
@illyrius666 illyrius666 deleted the fix/ReplantEnchantment/SeedUsage branch January 13, 2026 16:50
Copy link
Contributor

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 simplifies the ReplantEnchantment implementation by removing redundant code and a TODO comment about seed usage.

Changes:

  • Removed redundant block type reassignment that had no functional effect
  • Simplified the Runnable lambda to a single line
  • Removed TODO comment about seed consumption without implementing the referenced functionality

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 36 to 40
instance.server.scheduler.runTaskLater(
instance,
Runnable {
val blockType = block.type

block.type = blockType
block.blockData = ageable.apply { age = 0 }
},
Runnable { block.blockData = ageable.apply { age = 0 } },
2,
)
Copy link

Copilot AI Jan 13, 2026

Choose a reason for hiding this comment

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

The TODO comment about seed consumption has been removed without implementing the seed consumption functionality. The current implementation replants crops without consuming any seeds from drops or player inventory. If this is intentional game design (free replanting as the enchantment's benefit), the decision should be documented. If seeds should be consumed when replanting, consider implementing logic to remove one seed from the block drops or player inventory.

Copilot uses AI. Check for mistakes.
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.

2 participants