remove out commentec code

run SA
This commit is contained in:
Martin Robertz committed 2022-11-08 19:34:25 +01:00
1 parent b846e30b67
commit 2b27b551a3
795 files changed
+33663 -37253

No files matched your search

@@ -7,30 +7,24 @@ import net.minecraft.potion.Potion;
import net.minecraft.potion.PotionEffect;
import net.minecraftforge.event.entity.living.LivingDropsEvent;
public class ModLivingDropsEvent
{
public class ModLivingDropsEvent {
public static double rand;
@SubscribeEvent
public void onEntityDrop(LivingDropsEvent event)
{
if (event.source.getDamageType().equals("player"))
{
public void onEntityDrop(LivingDropsEvent event) {
if (event.source.getDamageType().equals("player")) {
rand = Math.random();
if (!(event.entityLiving instanceof EntityAnimal))
{
if (!(event.entityLiving instanceof EntityAnimal)) {
PotionEffect effect = event.entityLiving.getActivePotionEffect(Potion.weakness);
if (effect != null)
{
if (effect != null) {
if (effect.getAmplifier() >= 2)
if (rand < 0.50d)
{
if (rand < 0.50d) {
event.entityLiving.dropItem(ModItems.weakBloodShard, 1);
}
}
}
}
}
}
}