Commit a4937cc6182231e5cdaed6c94a8cb595d8359cb5

Authored by Mumfrey
1 parent e70f39ed

Fix backport to 1.11.2

src/client/java/com/mumfrey/liteloader/client/mixin/MixinMinecraft.java
@@ -38,7 +38,6 @@ public abstract class MixinMinecraft implements IMinecraft @@ -38,7 +38,6 @@ public abstract class MixinMinecraft implements IMinecraft
38 @Shadow private String serverName; 38 @Shadow private String serverName;
39 @Shadow private int serverPort; 39 @Shadow private int serverPort;
40 @Shadow private boolean isGamePaused; 40 @Shadow private boolean isGamePaused;
41 - @Shadow private float renderPartialTicksPaused;  
42 41
43 @Shadow abstract void resize(int width, int height); 42 @Shadow abstract void resize(int width, int height);
44 @Shadow private void clickMouse() {} 43 @Shadow private void clickMouse() {}
@@ -103,7 +102,7 @@ public abstract class MixinMinecraft implements IMinecraft @@ -103,7 +102,7 @@ public abstract class MixinMinecraft implements IMinecraft
103 private void onTick(CallbackInfo ci) 102 private void onTick(CallbackInfo ci)
104 { 103 {
105 boolean clock = this.timer.elapsedTicks > 0; 104 boolean clock = this.timer.elapsedTicks > 0;
106 - float partialTicks = this.isGamePaused ? this.renderPartialTicksPaused : this.timer.renderPartialTicks; 105 + float partialTicks = this.timer.renderPartialTicks;
107 this.broker.onTick(clock, partialTicks); 106 this.broker.onTick(clock, partialTicks);
108 } 107 }
109 108
src/client/java/com/mumfrey/liteloader/client/mixin/MixinTileEntityRendererDispatcher.java
@@ -19,11 +19,11 @@ import net.minecraft.tileentity.TileEntity; @@ -19,11 +19,11 @@ import net.minecraft.tileentity.TileEntity;
19 @Mixin(TileEntityRendererDispatcher.class) 19 @Mixin(TileEntityRendererDispatcher.class)
20 public abstract class MixinTileEntityRendererDispatcher implements ITileEntityRendererDispatcher 20 public abstract class MixinTileEntityRendererDispatcher implements ITileEntityRendererDispatcher
21 { 21 {
22 - @Shadow private Map<Class<? extends TileEntity>, TileEntitySpecialRenderer<? extends TileEntity>> renderers; 22 + @Shadow private Map<Class<? extends TileEntity>, TileEntitySpecialRenderer<? extends TileEntity>> mapSpecialRenderers;
23 23
24 @Override 24 @Override
25 public Map<Class<? extends TileEntity>, TileEntitySpecialRenderer<? extends TileEntity>> getSpecialRenderMap() 25 public Map<Class<? extends TileEntity>, TileEntitySpecialRenderer<? extends TileEntity>> getSpecialRenderMap()
26 { 26 {
27 - return this.renderers; 27 + return this.mapSpecialRenderers;
28 } 28 }
29 } 29 }
src/client/java/com/mumfrey/liteloader/modconfig/AbstractConfigPanel.java
@@ -6,7 +6,6 @@ @@ -6,7 +6,6 @@
6 package com.mumfrey.liteloader.modconfig; 6 package com.mumfrey.liteloader.modconfig;
7 7
8 import java.util.ArrayList; 8 import java.util.ArrayList;
9 -import java.util.Arrays;  
10 import java.util.List; 9 import java.util.List;
11 import java.util.regex.Pattern; 10 import java.util.regex.Pattern;
12 11