Fix using backslash in paths

This commit is contained in:
WHR 2020-10-17 17:41:58 +08:00
parent 853bde6da8
commit bbd629d8a3

View file

@ -34,10 +34,10 @@ public class ClientProxy extends CommonProxy {
{ {
File resourcePacks = Minecraft.getMinecraft().getResourcePackRepository().getDirResourcepacks().getCanonicalFile(); File resourcePacks = Minecraft.getMinecraft().getResourcePackRepository().getDirResourcepacks().getCanonicalFile();
File buckets = new File(resourcePacks + "\\Aether b1.7.3 Textures\\assets\\aether_legacy\\textures\\items\\misc\\buckets"); File buckets = new File(resourcePacks + "/Aether b1.7.3 Textures/assets/aether_legacy/textures/items/misc/buckets");
File weapons = new File(resourcePacks + "\\Aether b1.7.3 Textures\\assets\\aether_legacy\\textures\\items\\weapons"); File weapons = new File(resourcePacks + "/Aether b1.7.3 Textures/assets/aether_legacy/textures/items/weapons");
File armor = new File(resourcePacks + "\\Aether b1.7.3 Textures\\assets\\aether_legacy\\textures\\items\\armor"); File armor = new File(resourcePacks + "/Aether b1.7.3 Textures/assets/aether_legacy/textures/items/armor");
File accessories = new File(resourcePacks + "\\Aether b1.7.3 Textures\\assets\\aether_legacy\\textures\\items\\accessories"); File accessories = new File(resourcePacks + "/Aether b1.7.3 Textures/assets/aether_legacy/textures/items/accessories");
File[] directories = new File[] {buckets, weapons, armor, accessories}; File[] directories = new File[] {buckets, weapons, armor, accessories};
@ -134,4 +134,4 @@ public class ClientProxy extends CommonProxy {
return Minecraft.getMinecraft().thePlayer; return Minecraft.getMinecraft().thePlayer;
} }
} }