Have Elytra tick function separated.
This commit is contained in:
parent
9f75cbde1b
commit
e31226ae49
1 changed files with 5 additions and 0 deletions
|
@ -12,7 +12,12 @@ public interface BCLElytraItem extends FabricElytraItem {
|
|||
|
||||
double getMovementFactor();
|
||||
|
||||
|
||||
default void doVanillaElytraTick(LivingEntity entity, ItemStack chestStack) {
|
||||
vanillaElytraTick(entity, chestStack);
|
||||
}
|
||||
|
||||
static void vanillaElytraTick(LivingEntity entity, ItemStack chestStack) {
|
||||
int nextRoll = entity.getFallFlyingTicks() + 1;
|
||||
|
||||
if (!entity.level.isClientSide && nextRoll % 10 == 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue