fix color tints not clearing with other colors
This commit is contained in:
+5
-3
@@ -345,9 +345,9 @@ public abstract class AbstractDhTintGetter implements BlockAndTintGetter
|
||||
|
||||
|
||||
|
||||
//===========//
|
||||
// set color //
|
||||
//===========//
|
||||
//=================//
|
||||
// static handlers //
|
||||
//=================//
|
||||
//region
|
||||
|
||||
/**
|
||||
@@ -360,6 +360,8 @@ public abstract class AbstractDhTintGetter implements BlockAndTintGetter
|
||||
COLOR_BY_BLOCK_BIOME_PAIR.put(pair, colorInt);
|
||||
}
|
||||
|
||||
public static void clear() { COLOR_BY_BLOCK_BIOME_PAIR.clear(); }
|
||||
|
||||
//endregion
|
||||
|
||||
|
||||
|
||||
+17
@@ -828,6 +828,23 @@ public class ClientBlockStateColorCache
|
||||
|
||||
|
||||
|
||||
//=========//
|
||||
// cleanup //
|
||||
//=========//
|
||||
//region
|
||||
|
||||
public static void clearCachedTints()
|
||||
{
|
||||
#if MC_VER <= MC_1_12_2
|
||||
#else
|
||||
AbstractDhTintGetter.clear();
|
||||
#endif
|
||||
}
|
||||
|
||||
//endregion
|
||||
|
||||
|
||||
|
||||
//================//
|
||||
// helper classes //
|
||||
//================//
|
||||
|
||||
+8
-1
@@ -289,7 +289,14 @@ public class ClientLevelWrapper implements IClientLevelWrapper
|
||||
}
|
||||
|
||||
@Override
|
||||
public void clearBlockColorCache() { this.blockColorCacheByBlockState.clear(); }
|
||||
public void clearBlockColorCache()
|
||||
{
|
||||
this.blockColorCacheByBlockState.clear();
|
||||
|
||||
// this technically only needs to be called once globally, but it's easier
|
||||
// to handle here statically
|
||||
ClientBlockStateColorCache.clearCachedTints();
|
||||
}
|
||||
|
||||
private IDimensionTypeWrapper dimensionTypeWrapper = null;
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user