MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / checkWorldChanged

Method checkWorldChanged

src/main/java/net/optifine/shaders/Shaders.java:4187–4210  ·  view source on GitHub ↗
(World world)

Source from the content-addressed store, hash-verified

4185 }
4186
4187 public static void checkWorldChanged(World world)
4188 {
4189 if (currentWorld != world)
4190 {
4191 World oldworld = currentWorld;
4192 currentWorld = world;
4193 setCameraOffset(mc.getRenderViewEntity());
4194 int i = getDimensionId(oldworld);
4195 int j = getDimensionId(world);
4196
4197 if (j != i)
4198 {
4199 boolean flag = shaderPackDimensions.contains(Integer.valueOf(i));
4200 boolean flag1 = shaderPackDimensions.contains(Integer.valueOf(j));
4201
4202 if (flag || flag1)
4203 {
4204 uninit();
4205 }
4206 }
4207
4208 Smoother.resetValues();
4209 }
4210 }
4211
4212 private static int getDimensionId(World world)
4213 {

Callers 2

beginRenderMethod · 0.95

Calls 6

setCameraOffsetMethod · 0.95
getDimensionIdMethod · 0.95
uninitMethod · 0.95
resetValuesMethod · 0.95
getRenderViewEntityMethod · 0.80
containsMethod · 0.45

Tested by

no test coverage detected