Skip to content

Update PortableCharger.java#166

Open
nextrodium wants to merge 1 commit intoNCBPFluffyBear:masterfrom
nextrodium:master
Open

Update PortableCharger.java#166
nextrodium wants to merge 1 commit intoNCBPFluffyBear:masterfrom
nextrodium:master

Conversation

@nextrodium
Copy link
Copy Markdown
Contributor

@nextrodium nextrodium commented Jan 19, 2026

Short Description

Fixed energy dupe.

Before:
With 3+ portable chargers, you can dupethe energy between them
Now:
if the item is an instance of PortableCharger, it will not be recharged

(You can place a portable charger in the charger GUI just by using the numbers on the keyboard with the charger in the hotbar)

Additions/Changes/Removals

changed 2 consecutive if statements to if else if statements

Video Proof

Before: https://streamable.com/f3eps0
After: https://streamable.com/sehwy8

Checklist

  • I have fully tested the proposed changes and promise that they will not break everything into chaos.
  • I have also tested the proposed changes in combination with base Slimefun and made sure nothing breaks/unexpected happens.
  • I followed the existing code standards and didn't mess up the formatting.

Fixed energy dupe
@nextrodium
Copy link
Copy Markdown
Contributor Author

Not a big deal for many people, but I'm making my own addon (even though SlimeFun is no longer in development) and this “dupe” would cause me some problems... sorry to bother you

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