mirror of
https://github.com/GTNewHorizons/BloodMagic.git
synced 2026-11-27 15:23:06 +00:00
[ci skip] spotlessApply with the new settings
This commit is contained in:
1 parent
1cbe6e860c
commit
202b7ce27a
790 files changed
+11316
-9692
No files matched your search
@@ -1,13 +1,15 @@
|
||||
package WayofTime.alchemicalWizardry.common;
|
||||
|
||||
import WayofTime.alchemicalWizardry.ModItems;
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import net.minecraft.entity.passive.EntityAnimal;
|
||||
import net.minecraft.potion.Potion;
|
||||
import net.minecraft.potion.PotionEffect;
|
||||
import net.minecraftforge.event.entity.living.LivingDropsEvent;
|
||||
|
||||
import WayofTime.alchemicalWizardry.ModItems;
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
|
||||
public class ModLivingDropsEvent {
|
||||
|
||||
public static double rand;
|
||||
|
||||
@SubscribeEvent
|
||||
@@ -19,10 +21,9 @@ public class ModLivingDropsEvent {
|
||||
PotionEffect effect = event.entityLiving.getActivePotionEffect(Potion.weakness);
|
||||
|
||||
if (effect != null) {
|
||||
if (effect.getAmplifier() >= 2)
|
||||
if (rand < 0.50d) {
|
||||
event.entityLiving.dropItem(ModItems.weakBloodShard, 1);
|
||||
}
|
||||
if (effect.getAmplifier() >= 2) if (rand < 0.50d) {
|
||||
event.entityLiving.dropItem(ModItems.weakBloodShard, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user