Skip to content

Commit e473a99

Browse files
committed
V1.2.3
1 parent 050458b commit e473a99

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

TextChatMeow/MessageHandler/MessageHandler.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@ public void UpdateMessage()
5858
.Where(x => x.CountDown > 0)
5959
.Where(x => x.CanSee(this.player))
6060
.ToList();
61-
62-
displayableMessages.ForEach(x => x.CountDown--);
6361
}
6462
catch(Exception ex)
6563
{
@@ -125,6 +123,12 @@ private static IEnumerator<float> AutoUpdateMethod()
125123
{
126124
messageManager.UpdateMessage();
127125
}
126+
127+
MessagePool
128+
.GetMessages()
129+
.Where(x => x.CountDown >= 0)
130+
.ToList()
131+
.ForEach(x => x.CountDown--);
128132
}
129133
catch (Exception e)
130134
{

TextChatMeow/Plugin.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
// fixing bugs
1919
// V1.2.2
2020
// Use count down instead of calculating the time directly. Bug fixing
21+
// V1.2.3
22+
// Bug fixing
2123

2224
namespace TextChatMeow
2325
{
@@ -27,7 +29,7 @@ internal class Plugin : Plugin<Config>
2729

2830
public override string Name => "TextChatMeow";
2931
public override string Author => "MeowServerOwner";
30-
public override Version Version => new Version(1, 2, 2);
32+
public override Version Version => new Version(1, 2, 3);
3133

3234
public override void OnEnabled()
3335
{

0 commit comments

Comments
 (0)