Small Cleanup (#68)

Co-authored-by: Martin Robertz <[email protected]>
This commit is contained in:
glowredmanandMartin Robertz authored and GitHub committed 2025-01-13 00:13:56 -06:00
1 parent f5a21fe41e
commit e8fb04df37
196 files changed
+887 -543

No files matched your search

@@ -116,7 +116,7 @@ public class EntityDoppleganger extends EntityCreature implements IBotaniaBossWi
boolean spawnPixies = false;
boolean anyWithArmor = false;
List<String> playersWhoAttacked = new ArrayList();
List<String> playersWhoAttacked = new ArrayList<>();
private static boolean isPlayingMusic = false;
@@ -584,7 +584,7 @@ public class EntityDoppleganger extends EntityCreature implements IBotaniaBossWi
if(player.inventory.armorInventory[0] != null || player.inventory.armorInventory[1] != null || player.inventory.armorInventory[2] != null || player.inventory.armorInventory[3] != null)
anyWithArmor = true;
List<PotionEffect> remove = new ArrayList();
List<PotionEffect> remove = new ArrayList<>();
Collection<PotionEffect> active = player.getActivePotionEffects();
for(PotionEffect effect : active)
if(effect.getDuration() < 200 && effect.getIsAmbient() && !ReflectionHelper.<Boolean, Potion>getPrivateValue(Potion.class, Potion.potionTypes[effect.getPotionID()], LibObfuscation.IS_BAD_EFFECT))