parent
e7afdbd470
commit
fdae73630d
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user