Fixed API call to reference proper method.
This commit is contained in:
parent
fb943c964e
commit
5fced804b5
Binary file not shown.
@ -4404,7 +4404,7 @@ public class GenericFunctions {
|
||||
if (important) {
|
||||
pd.lastimportantactionbarmsg=TwosideKeeper.getServerTickTime();
|
||||
}
|
||||
TwosideKeeper.lastActionBarMessage=finalmsg;
|
||||
pd.lastActionBarMessage=finalmsg;
|
||||
}
|
||||
}
|
||||
|
||||
@ -4413,8 +4413,9 @@ public class GenericFunctions {
|
||||
pd.lastimportantactionbarmsg=last_important_msg_time;
|
||||
}
|
||||
|
||||
public static String getLastActionBarMessage() {
|
||||
return TwosideKeeper.lastActionBarMessage;
|
||||
public static String getLastActionBarMessage(Player p) {
|
||||
PlayerStructure pd = PlayerStructure.GetPlayerStructure(p);
|
||||
return pd.lastActionBarMessage;
|
||||
}
|
||||
|
||||
public static String getDisplayName(LivingEntity ent) {
|
||||
|
@ -149,6 +149,7 @@ public class PlayerStructure {
|
||||
public long rage_time=0; //Set this to the last tick that rage is supposed to last. It'll wear off after this.
|
||||
public int rage_amt=0;
|
||||
public long swiftaegistime=0;
|
||||
public String lastActionBarMessage="";
|
||||
|
||||
//Needs the instance of the player object to get all other info. Only to be called at the beginning.
|
||||
@SuppressWarnings("deprecation")
|
||||
|
@ -422,7 +422,7 @@ public final class TwosideKeeperAPI {
|
||||
return ActionBarBuffUpdater.getActionBarPrefix(ent);
|
||||
}
|
||||
public static String getCurrentActionBarText(Player p) {
|
||||
return GenericFunctions.getLastActionBarMessage();
|
||||
return GenericFunctions.getLastActionBarMessage(p);
|
||||
}
|
||||
public static void setActionBarLastImportantMessageTime(Player p, long last_important_msg_time) {
|
||||
GenericFunctions.sendLastImportantActionBarMsgTime(p, last_important_msg_time);
|
||||
|
Loading…
x
Reference in New Issue
Block a user