Use volatile for changeable resourcces

This commit is contained in:
Sollace 2018-07-31 10:11:36 +02:00
parent fd9d9a64ed
commit 31d7fdad0b

View file

@ -19,8 +19,8 @@ public class LocalTexture {
private final TextureManager textureManager = Minecraft.getMinecraft().getTextureManager(); private final TextureManager textureManager = Minecraft.getMinecraft().getTextureManager();
private DynamicTexture local; private volatile DynamicTexture local;
private PreviewTexture remote; private volatile PreviewTexture remote;
private ResourceLocation remoteResource; private ResourceLocation remoteResource;
private ResourceLocation localResource; private ResourceLocation localResource;