You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (FabricLoader.getInstance().getEnvironmentType() == EnvType.SERVER) {
dir = Paths.get("schematics", "uploaded").toAbsolutePath();
file = Paths.get(owner, schematic);
} else {
dir = Paths.get("schematics").toAbsolutePath();
file = Paths.get(schematic);
}
The return of FabricLoader.getInstance().getEnvironmentType() depends on whether the running program is server.jar or client.jar. In other words, when using LAN server, FabricLoader.getInstance().getEnvironmentType() on the internal server still returns EnvType.CLIENT.
That is, in a LAN server, this code will always attempt to retrieve schematic files from "schematics" rather than "schematics/uploaded".So it can only ever read schematics created by the host in the "schematics" folder and cannot access schematics uploaded by other players to "schematics/uploads".
Game Log
The root cause of the bug has been explained above, so in my opinion, the log file is not needed.
Debug Information
Same as above.
The text was updated successfully, but these errors were encountered:
Description
The problem is here:
Create/src/main/java/com/simibubi/create/content/schematics/SchematicItem.java
Lines 133 to 139 in 5f9fd55
The return of
FabricLoader.getInstance().getEnvironmentType()
depends on whether the running program isserver.jar
orclient.jar
. In other words, when using LAN server,FabricLoader.getInstance().getEnvironmentType()
on the internal server still returnsEnvType.CLIENT
.That is, in a LAN server, this code will always attempt to retrieve schematic files from "schematics" rather than "schematics/uploaded".So it can only ever read schematics created by the host in the "schematics" folder and cannot access schematics uploaded by other players to "schematics/uploads".
Game Log
The root cause of the bug has been explained above, so in my opinion, the log file is not needed.
Debug Information
Same as above.
The text was updated successfully, but these errors were encountered: