Closed adamsonich closed 8 years ago
small but still speed up
You didn't read the whole line did you? "(Configurations.PlayerAuraDeadly || !(entity instanceof EntityPlayer)) && entity != player" IF PlayerAuraDeadly is enabled then the statement will be read in the code as.. "true && victim != EnchantedPlayer" If it's not enabled "entity != EntityPlayer && victim != enchantedPlayer"
If enabled the enchant can damage players, but I don't want it damaging the user of the enchant
I use IntelliJ IDEA AKA (Intelligent Java Integrated Development Environment Advanced) It would've told me that the statement was useless, if it was.
"!(entity instanceof EntityPlayer)) && entity != player" (entity is not any player) and (entity is not owner-player) will always give false on any player