temp
Some checks are pending
build / build (21) (push) Waiting to run

This commit is contained in:
walrus 2025-01-20 17:39:40 -05:00
parent e7afdbd470
commit fdae73630d

View File

@ -19,7 +19,6 @@ public class FactionItemRepair extends AbstractNode {
Date date = new Date();
int repairTier = -1;
int tempValue = 0;
FactionManager utilFactionManager = new FactionManager();
@Override
public String GetNodeTitle() {
@ -45,7 +44,7 @@ public class FactionItemRepair extends AbstractNode {
public void RepairInventory(ServerPlayerEntity player) {
//probably will end up using this List<DefaultedList<ItemStack>> combinedInventory; from PlayerInventory
//PlayerInventory playerInv = player.getInventory();// main is all your inventory you can see exluding your off hand and armor i think
switch (utilFactionManager.GetFactionPower(player)) {//should be the faction power
switch (FactionManager.GetInstance().GetFactionTier(FactionManager.GetInstance().GetFactionOfPlayer(player.getUuidAsString()))) {//should be the faction power
case 0:
repairTier = -1;
break;
@ -96,7 +95,7 @@ public class FactionItemRepair extends AbstractNode {
@Override
public void RegisterCallbacks() {
PlayerInBaseCallback.EVENT.register((player, world, power) -> {
PlayerInBaseCallback.EVENT.register((player, world, power, tier) -> {
/* DO STUFF - REMEMBER: This function is called EVERY tick a player is inside the base! That's EVERY tick*/
if (resetTimer) {