mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 18:49:39 +00:00
Full Imports and Code Format Optimization
This commit is contained in:
1 parent
250edf099c
commit
6815f579a7
1192 files changed
+60344
-62167
No files matched your search
@@ -51,7 +51,7 @@ public class PlayerEffect implements IPlayerEffect {
|
||||
@Override
|
||||
public String getName() {
|
||||
CustomEffect effect = CustomEffectController.getInstance().get(this.id, this.index);
|
||||
if(effect != null)
|
||||
if (effect != null)
|
||||
return effect.getName();
|
||||
|
||||
return "UNKNOWN";
|
||||
@@ -61,7 +61,7 @@ public class PlayerEffect implements IPlayerEffect {
|
||||
public void performEffect(IPlayer player) {
|
||||
if (player != null && player.getMCEntity() != null && player.getMCEntity() instanceof EntityPlayer) {
|
||||
CustomEffect effect = CustomEffectController.getInstance().get(this.id, this.index);
|
||||
if(effect != null)
|
||||
if (effect != null)
|
||||
effect.onTick((EntityPlayer) player.getMCEntity(), this);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user