mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-18 11:19:19 +00:00
Diva charm no longer brainwashes boss mobs. Closes #2921
This commit is contained in:
1 parent
fecf1b5c06
commit
dca3c28cca
1 file changed
+5
-1
@@ -56,7 +56,11 @@ public class ItemDivaCharm extends ItemBauble implements IManaUsingItem, IBauble
|
||||
|
||||
@SubscribeEvent
|
||||
public void onEntityDamaged(LivingHurtEvent event) {
|
||||
if (event.getSource().getImmediateSource() instanceof EntityPlayer && event.getEntityLiving() instanceof EntityLiving && !event.getEntityLiving().world.isRemote && Math.random() < 0.6F) {
|
||||
if (event.getSource().getImmediateSource() instanceof EntityPlayer
|
||||
&& event.getEntityLiving() instanceof EntityLiving
|
||||
&& !event.getEntityLiving().world.isRemote
|
||||
&& event.getEntityLiving().isNonBoss()
|
||||
&& Math.random() < 0.6F) {
|
||||
Runnable lambda = () -> {
|
||||
EntityLiving target = (EntityLiving) event.getEntityLiving();
|
||||
EntityPlayer player = (EntityPlayer) event.getSource().getImmediateSource();
|
||||
|
||||
Reference in new issue
Block a user