Skip to content

Commit

Permalink
Minor grammar and formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
4Ply committed Jan 2, 2024
1 parent b47108f commit 1ab6654
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/main/kotlin/org/trackedout/AgroNet.kt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import kotlin.time.Duration.Companion.seconds
import kotlin.time.toJavaDuration

const val RECEIVED_SHULKER = "do2.received_shulker"

object AgroNet : ModInitializer {
private val logger = LoggerFactory.getLogger("Agro-net")

Expand Down Expand Up @@ -149,7 +150,7 @@ object AgroNet : ModInitializer {
)
}

ServerPlayConnectionEvents.JOIN.register(AgroNetServerPlayConnectionListener(addDeckToPlayerInventoryAction));
ServerPlayConnectionEvents.JOIN.register(AgroNetServerPlayConnectionListener(addDeckToPlayerInventoryAction))

eventsApi.eventsPost(
EventsPostRequest(
Expand Down Expand Up @@ -221,5 +222,4 @@ object AgroNet : ModInitializer {

return ActionResult.SUCCESS
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ package org.trackedout.actions
import net.minecraft.entity.player.PlayerEntity
import net.minecraft.util.Formatting
import org.slf4j.LoggerFactory
import org.trackedout.*
import org.trackedout.RECEIVED_SHULKER
import org.trackedout.debug
import org.trackedout.isDeckedOutShulker
import org.trackedout.sendMessage

class RemoveDeckFromPlayerInventoryAction {
private val logger = LoggerFactory.getLogger("Agro-net")
Expand Down Expand Up @@ -33,13 +36,13 @@ class RemoveDeckFromPlayerInventoryAction {

if (removedItems > 0) {
player.commandTags.remove(RECEIVED_SHULKER)
player.sendMessage("Your Decked Out shulker has been removed your inventory (it's stored in Dunga Dunga)", Formatting.GREEN)
player.sendMessage("Your Decked Out shulker has been removed from your inventory (it's stored in Dunga Dunga)", Formatting.GREEN)
} else {
logger.info("${player.name}'s inventory does not contain a Decked Out Shulker")
player.sendMessage("Your inventory does not contain a Decked Out Shulker", Formatting.RED)
}

player.inventory.updateItems()
player.commandTags.remove(RECEIVED_SHULKER);
player.commandTags.remove(RECEIVED_SHULKER)
}
}

0 comments on commit 1ab6654

Please sign in to comment.