Switch over various components

This commit is contained in:
Aria 2023-03-05 15:25:49 -07:00
parent 45796de812
commit 4437104c19
73 changed files with 202 additions and 2516 deletions

View file

@ -1,6 +1,7 @@
package dev.zontreck.otemod.configs;
import net.minecraft.server.level.ServerPlayer;
import net.minecraft.world.entity.player.Abilities;
public class PlayerFlyCache
{
@ -17,6 +18,10 @@ public class PlayerFlyCache
}
public void Assert(ServerPlayer play){
Abilities playerAbilities = play.getAbilities();
playerAbilities.flying=Flying;
playerAbilities.mayfly=FlyEnabled;
play.onUpdateAbilities();
}
}