Backport to 1.18.2

This commit is contained in:
zontreck 2024-01-17 02:25:27 -07:00
parent 1fbd10471f
commit c344b5c0b6
67 changed files with 3335 additions and 3858 deletions

View file

@ -80,7 +80,7 @@ public class FlightEnchantment extends Enchantment
{
if(event.side == LogicalSide.CLIENT) return;
if(TICKS.getAndIncrement() >= (5*20))
if(TICKS.getAndIncrement() >= (10*20))
{
TICKS.set(0);
@ -104,7 +104,7 @@ public class FlightEnchantment extends Enchantment
if(hasFlight)
{
MobEffectInstance inst = new MobEffectInstance(ModEffects.FLIGHT.get(), -1, 0, false, false, true);
MobEffectInstance inst = new MobEffectInstance(ModEffects.FLIGHT.get(), 30*20, 0, false, false, true);
event.player.addEffect(inst);
}

View file

@ -58,7 +58,7 @@ public class NightVisionEnchantment extends Enchantment
{
if(event.side == LogicalSide.CLIENT) return;
if(TICKS.getAndIncrement() >= (2*20))
if(TICKS.getAndIncrement() >= (5*20))
{
TICKS.set(0);