[Change] Use static Tick function for elytra
This commit is contained in:
parent
620633046a
commit
76a0b299b2
1 changed files with 2 additions and 15 deletions
|
@ -3,7 +3,6 @@ package org.betterx.betterend.integration.trinkets;
|
||||||
import org.betterx.bclib.items.elytra.BCLElytraItem;
|
import org.betterx.bclib.items.elytra.BCLElytraItem;
|
||||||
import org.betterx.bclib.items.elytra.BCLElytraUtils;
|
import org.betterx.bclib.items.elytra.BCLElytraUtils;
|
||||||
|
|
||||||
import net.minecraft.resources.ResourceLocation;
|
|
||||||
import net.minecraft.util.Tuple;
|
import net.minecraft.util.Tuple;
|
||||||
import net.minecraft.world.entity.EquipmentSlot;
|
import net.minecraft.world.entity.EquipmentSlot;
|
||||||
import net.minecraft.world.entity.LivingEntity;
|
import net.minecraft.world.entity.LivingEntity;
|
||||||
|
@ -72,7 +71,7 @@ public class Elytra {
|
||||||
|
|
||||||
if (item instanceof ElytraItem) {
|
if (item instanceof ElytraItem) {
|
||||||
if (ElytraItem.isFlyEnabled(stack)) {
|
if (ElytraItem.isFlyEnabled(stack)) {
|
||||||
INSTANCE.doVanillaElytraTick(entity, stack);
|
BCLElytraItem.vanillaElytraTick(entity, stack);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
} else if (item instanceof FabricElytraItem fabricElytraItem) {
|
} else if (item instanceof FabricElytraItem fabricElytraItem) {
|
||||||
|
@ -84,18 +83,6 @@ public class Elytra {
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static final BCLElytraItem INSTANCE = new BCLElytraItem() {
|
|
||||||
@Override
|
|
||||||
public ResourceLocation getModelTexture() {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public double getMovementFactor() {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue