[SPIGOT-6034] World.getWorldFolder() includes the dot in the path (world/.), breaking behavior Created: 27/Jul/20  Updated: 28/Jul/20  Resolved: 28/Jul/20

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Norbert Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: world
Environment:

Ubuntu 20.04 LTS 64bit

OpenJDK 11.0.8

 


Version: This server is running CraftBukkit version git-Spigot-9639cf7-0458f60 (MC: 1.16.1) (Implementing API version 1.16.1-R0.1-SNAPSHOT)
Guidelines Read: Yes

 Description   

In the case of a world named "world", the method World.getWorldFolder() now returns a File referring to "./world/." instead of "./world", which refers to the same folder but calling getParentFile() now returns "./world" instead of the containing folder ".", breaking plugins that use this. It works correctly on versions up to 1.15.2.

 


Generated at Tue Apr 15 09:25:29 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.