Skip to content

Commit

Permalink
Merge pull request #12 from FxRayHughes/master
Browse files Browse the repository at this point in the history
update
  • Loading branch information
Bkm016 authored Nov 1, 2023
2 parents afa7fc1 + e122c7c commit 428ac3c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ taboolib {
install("platform-bukkit")
install("expansion-command-helper")
classifier = null
version = "6.0.10-117"
version = "6.0.12-34"
}

repositories {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
group=ink.ptms.fenestra
version=1.1.4
version=1.1.5
20 changes: 12 additions & 8 deletions src/main/kotlin/ink/ptms/fenestra/Workspace.kt
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,12 @@ class Workspace(val player: CommandSender, val itemStack: ItemStack, val isReadO
}

channel.parent == null -> {
compound[node] = when {
type.isListType() -> type.createEmptyListData()
data != null -> type.createGenericData(node.toString(), data)
else -> return
node?.let {
compound[node] = when {
type.isListType() -> type.createEmptyListData()
data != null -> type.createGenericData(node.toString(), data)
else -> return
}
}
}

Expand Down Expand Up @@ -360,10 +362,12 @@ class Workspace(val player: CommandSender, val itemStack: ItemStack, val isReadO
private fun writeNBT(path: String, base: ItemTagData, type: ItemTagType, node: String?, data: Any?) {
when (base.type) {
ItemTagType.COMPOUND -> {
base.asCompound()[node] = when {
type.isListType() -> type.createEmptyListData()
data != null -> type.createGenericData(path, data)
else -> return
node?.let {
base.asCompound()[node] = when {
type.isListType() -> type.createEmptyListData()
data != null -> type.createGenericData(path, data)
else -> return
}
}
}

Expand Down

0 comments on commit 428ac3c

Please sign in to comment.