[1.7.10][WIP] Lord British's Legacy

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

RavynousHunter

New Member
Jul 29, 2019
2,784
-3
1
I was led to believe by Minecraft's comments in its own code that potion duration was expressed in seconds, not ticks; however, I shall try upping the duration and seeing what happens. Also, I do == false because that's how I learned to do it. Technically speaking, they're the same (unless there's some Java idiocy going on behind the scenes I don't know about), its just that I learned to be explicit, instead of relying on unary operators like that, since it improves readability.
 

Kocyk

New Member
Jul 29, 2019
113
0
1
The only difference is that you're making 2 checks instead of 1. It's not a problem, just "less efficient" ;).
 

RavynousHunter

New Member
Jul 29, 2019
2,784
-3
1
Aah. I swear, Java is the strangest freaking language with how it implements some things...

[ETA]

Fixed! Thankee for the assist, Kocyk. I've got all tiers of the yellow potion slotted in now. Currently, they're sitting at:

Lesser: Heal I, Regen I (5 sec)
Standard: Heal II, Regen I (7 sec)
Greater: Heal III, Regen II (9 sec)
Superior: Heal IV, Regen III (11 sec)

I'll likely have 'em configurable, but those are the defaults for now.
 
Last edited: