Skip to content

Commit d8d0133

Browse files
refactor: make npcSittingId and npcSittingUuid immutable in BukkitNpc
1 parent 8927c40 commit d8d0133

File tree

1 file changed

+2
-2
lines changed
  • surf-npc-bukkit/src/main/kotlin/dev/slne/surf/npc/bukkit/npc

1 file changed

+2
-2
lines changed

surf-npc-bukkit/src/main/kotlin/dev/slne/surf/npc/bukkit/npc/BukkitNpc.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ class BukkitNpc(
5151
override val properties: Object2ObjectMap<String, NpcProperty>,
5252
override val viewers: ObjectSet<UUID>?,
5353
override val uniqueName: String,
54-
override var npcSittingId: Int,
55-
override var npcSittingUuid: UUID
54+
override val npcSittingId: Int,
55+
override val npcSittingUuid: UUID
5656
) : Npc {
5757
private val eventHandlers =
5858
mutableObject2ObjectMapOf<KClass<out NpcEvent>, ObjectList<NpcEventHandler<*>>>()

0 commit comments

Comments
 (0)