From 2d3e518704f5193126150d77eae8c3b76ab2823f Mon Sep 17 00:00:00 2001 From: Red-exe-Engineer <90420989+Red-exe-Engineer@users.noreply.github.com> Date: Wed, 10 Aug 2022 00:48:44 -0400 Subject: [PATCH] Fix newline in world name again This should work better, maybe --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index bc4a93a..d9f47fe 100644 --- a/main.py +++ b/main.py @@ -57,7 +57,7 @@ def reload_nbt(): class WorldTab(Tab): def save_nbt(self): - context.nbt_file['LevelName'] = TAG_String(self.world_name.get('1.0', 'end')) + context.nbt_file['LevelName'] = TAG_String(self.world_name.get('1.0', 'end')[:-1]) context.nbt_file['RandomSeed'] = TAG_Long(int(self.seed.get('1.0', 'end'))) context.nbt_file['Time'] = TAG_Long(int(self.time.get('1.0', 'end'))) context.nbt_file['GameType'] = TAG_Int(GAME_MODE.index(self.game_mode.get()))