Poison sand gives regeneration instead of poison
Raverbury opened this issue ยท 0 comments
Pretty much what the title said. Happened to me on 1.18.2 5.1.4, but I think this affects every version since it's supposedly coded that way, as evident in the source code. Just gonna paste the error here since it's relatively short:
public class PoisonSandBlock extends SoulSandBlock
{
...
@Override
public void entityInside(BlockState state, Level level, BlockPos pos, Entity entityIn)
{
if (!level.isClientSide && entityIn != null && entityIn instanceof LivingEntity)
{
LivingEntity livingentity = (LivingEntity)entityIn;
if (!livingentity.hasEffect(MobEffects.REGENERATION)) <--- here
{
livingentity.addEffect(new MobEffectInstance(MobEffects.REGENERATION, 5 * 20, 0)); <--- and here
}
}
}
}