1.21.3 support
This commit is contained in:
parent
854ce7201c
commit
8f9a6005f5
13 changed files with 31 additions and 28 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue