Skip to content
This repository has been archived by the owner on Aug 31, 2019. It is now read-only.

Fix maxNoDamageTicks being cut in half #98

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jedediah
Copy link
Member

For no apparent reason, noDamageTicks was counting down from maxNoDamageTicks to maxNoDamageTicks/2. Both of these values can be set through the Bukkit API, but there is no correction for this strange offset. As a result, the value passed to setMaxNoDamageTicks would effectively be cut in half, and the value passed to setNoDamageTicks would be reduced by maxNoDamageTicks/2.

@tonybruess
Copy link
Member

Missing two // CraftBukkit comments

@jedediah
Copy link
Member Author

added comments

@ttaylorr
Copy link

Looks good to merge

@tonybruess
Copy link
Member

One thing. Bukkit/CraftBukkit@bccc961 changed the damage API and mentioned the changes affecting noDamageTicks. Not sure exactly what they did, but would it be better to update SportBukkit? I updated it a while ago but it caused issues with our kill tracking.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants