Cleanup modcompat code, initial build setup for JEI support.

This commit is contained in:
modmuss50 2022-06-24 00:12:30 +01:00
parent 497c0134a6
commit abcac85d0e
30 changed files with 91 additions and 208 deletions

View file

@ -97,7 +97,7 @@ public class QuantumSuitItem extends TRArmourItem implements ArmorBlockEntityTic
break;
case CHEST:
if (enableFlight){
if (getStoredEnergy(stack) > flyCost && !TechReborn.elytraPredicate.test(playerEntity)) {
if (getStoredEnergy(stack) > flyCost) {
playerEntity.getAbilities().allowFlying = true;
if (playerEntity.getAbilities().flying) {
tryUseEnergy(stack, flyCost);