1.21.3 support

This commit is contained in:
kawaiizenbo 2024-11-09 18:47:28 -07:00
parent 854ce7201c
commit 8f9a6005f5
13 changed files with 31 additions and 28 deletions

View file

@ -20,19 +20,19 @@ public class Step extends Module
public void onEnable()
{
super.onEnable();
old = mc.player.getAttributeInstance(EntityAttributes.GENERIC_STEP_HEIGHT).getBaseValue();
old = mc.player.getAttributeInstance(EntityAttributes.STEP_HEIGHT).getBaseValue();
}
@Override
public void tick()
{
mc.player.getAttributeInstance(EntityAttributes.GENERIC_STEP_HEIGHT).setBaseValue(stepHeight.value);
mc.player.getAttributeInstance(EntityAttributes.STEP_HEIGHT).setBaseValue(stepHeight.value);
}
@Override
public void onDisable()
{
super.onDisable();
mc.player.getAttributeInstance(EntityAttributes.GENERIC_STEP_HEIGHT).setBaseValue(old);
mc.player.getAttributeInstance(EntityAttributes.STEP_HEIGHT).setBaseValue(old);
}
}