Skip to content

Commit

Permalink
milk no longer removes thaumcraft warp effect (#26)
Browse files Browse the repository at this point in the history
Co-authored-by: MissBismuth <[email protected]>
  • Loading branch information
MissBismuth and MissBismuth authored Jan 19, 2025
1 parent e91d12b commit 43a2cfa
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
import net.minecraftforge.fluids.FluidRegistry;

Expand All @@ -16,7 +18,7 @@ public MilkEffect() {
@Override
public void affectDrinker(World world, Entity entity) {
if (entity instanceof EntityPlayer) {
((EntityPlayer) entity).clearActivePotions();
((EntityPlayer) entity).curePotionEffects(new ItemStack(Items.milk_bucket));
}
}
}

0 comments on commit 43a2cfa

Please sign in to comment.