Skip to content

Commit 4441a7f

Browse files
committed
Fix loading issues in datapack uninstall function
- Missing line break after a command - Add [NBS] tag to uninstall message - Change "underline" property to "underlined"
1 parent 7e32c5e commit 4441a7f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/datapack_export/datapack_export.gml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,15 +97,15 @@ with (new(obj_dummy2)) {
9797
inputString += "scoreboard objectives remove " + objective + br
9898
inputString += "scoreboard objectives remove " + objective + "_t" + br
9999
if (add_teams) {
100+
inputString += "kill @e[type=falling_block,tag=nbs]" + br
100101
inputString += "function " + functionpath + "remove_teams" + br
101-
inputString += "kill @e[type=falling_block,tag=nbs]"
102102
}
103103
if (o.dat_usezip) {
104104
inputString += "datapack disable \"file/" + filename_name(fn) + "\"" + br
105105
} else {
106106
inputString += "datapack disable \"" + filename_name(fn) + "\"" + br
107107
}
108-
inputString += "tellraw @s [\"\",{\"text\":\"Data pack \",\"color\":\"yellow\"},{\"text\":\"" + filename_name(fn) + "\",\"color\":\"gold\",\"underline\":\"true\"},{\"text\":\" uninstalled successfully. You may now remove it from your data pack folder.\",\"color\":\"yellow\"}]"
108+
inputString += "tellraw @s [\"\",{\"text\":\"[NBS] \",\"color\":\"gold\",\"bold\":\"true\"},{\"text\":\"Data pack \",\"color\":\"yellow\"},{\"text\":\"" + filename_name(fn) + "\",\"color\":\"gold\",\"underlined\":\"true\"},{\"text\":\" uninstalled successfully. You may now remove it from your data pack folder.\",\"color\":\"yellow\"}]"
109109
dat_writefile(inputString, functiondir + "uninstall.mcfunction")
110110

111111
if (add_teams) {

0 commit comments

Comments
 (0)