optimize import and code reformat
This commit is contained in:
parent
36f8e3f6f0
commit
64ef73f7e0
15 changed files with 379 additions and 371 deletions
|
@ -34,7 +34,8 @@ public class CombatManager extends Manager {
|
|||
public void onDamage(EntityDamageByEntityEvent e) {
|
||||
e.setDamage(0.0);
|
||||
|
||||
if (!(e.getDamager() instanceof LivingEntity damager) || !(e.getEntity() instanceof LivingEntity entity)) {
|
||||
if (!(e.getDamager() instanceof LivingEntity damager)
|
||||
|| !(e.getEntity() instanceof LivingEntity entity)) {
|
||||
return;
|
||||
}
|
||||
PlayerManager pm = (PlayerManager) PlayerManager.getInstance(PlayerManager.class);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue