Skip to content

Commit

Permalink
Sorry, A small bugfix!
Browse files Browse the repository at this point in the history
  • Loading branch information
MellDa1024 committed Jul 18, 2022
1 parent 899727f commit 14a4d60
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ org.gradle.jvmargs=-Xmx3G
org.gradle.parallel=true

modGroup=com.mellda
modVersion=1.0
modVersion=1.0.1

minecraftVersion=1.12.2
forgeVersion=14.23.5.2860
Expand Down
1 change: 0 additions & 1 deletion src/main/kotlin/com/mellda/NotificationPlugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import com.mellda.modules.LambdaNotification
internal object NotificationPlugin : Plugin() {

override fun onLoad() {
// Load any modules, commands, or HUD elements here
modules.add(LambdaNotification)
}

Expand Down
4 changes: 3 additions & 1 deletion src/main/kotlin/com/mellda/modules/LambdaNotification.kt
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ internal object LambdaNotification : PluginModule(
for (player in playerSet) {
if (!loadedPlayerSet.contains(player)) {
toRemove.add(player)
if (((friendSpotted == FriendMode.OnlyFriend) && FriendManager.isFriend(player.name)) || ((friendSpotted == FriendMode.Ignore) && !FriendManager.isFriend(player.name))) {
if (((friendSpotted == FriendMode.OnlyFriend) && FriendManager.isFriend(player.name))
|| ((friendSpotted == FriendMode.Ignore) && !FriendManager.isFriend(player.name))
|| (friendSpotted == FriendMode.Contain)) {
if (isEnabled && !Display.isActive()) trayicon.displayMessage("Lambda Client", "${player.name} leaved from Render Distance.", TrayIcon.MessageType.NONE)
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin_info.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "LambdaNotification",
"version": "1.0",
"version": "1.0.1",
"description": "Notification for Lambda.",
"url": "https://github.com/MellDa1024/LambdaNotification",
"authors": [ "MellDa" ],
Expand Down

0 comments on commit 14a4d60

Please sign in to comment.