Fixed endless recursion :(

This commit is contained in:
Frank 2022-06-10 23:09:16 +02:00
parent b9ee21085b
commit 04fe6d33d7

View file

@ -13,8 +13,6 @@ public interface BCLElytraItem extends FabricElytraItem {
double getMovementFactor(); double getMovementFactor();
default void doVanillaElytraTick(LivingEntity entity, ItemStack chestStack) { default void doVanillaElytraTick(LivingEntity entity, ItemStack chestStack) {
if (BCLElytraUtils.onBreak == null) ((FabricElytraItem) this).doVanillaElytraTick(entity, chestStack);
int nextRoll = entity.getFallFlyingTicks() + 1; int nextRoll = entity.getFallFlyingTicks() + 1;
if (!entity.level.isClientSide && nextRoll % 10 == 0) { if (!entity.level.isClientSide && nextRoll % 10 == 0) {