aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/common/GT_Client.java
diff options
context:
space:
mode:
authorMartin Robertz <dream-master@gmx.net>2021-10-18 11:36:34 +0200
committerGitHub <noreply@github.com>2021-10-18 11:36:34 +0200
commit9fb6fb9e5b17d08e4dae4e811ca91715ce7685e4 (patch)
tree8683e58190fa0c6cca1412b0ed12b48ef5ec974e /src/main/java/gregtech/common/GT_Client.java
parent5aa5c7d77309a70eb4f637fb265f531ff4e8375e (diff)
parent4d91ffd264c10ba82d767403e200347c74b8338d (diff)
downloadGT5-Unofficial-9fb6fb9e5b17d08e4dae4e811ca91715ce7685e4.tar.gz
GT5-Unofficial-9fb6fb9e5b17d08e4dae4e811ca91715ce7685e4.tar.bz2
GT5-Unofficial-9fb6fb9e5b17d08e4dae4e811ca91715ce7685e4.zip
Merge pull request #686 from GTNewHorizons/patches-g
Various minor optimizations
Diffstat (limited to 'src/main/java/gregtech/common/GT_Client.java')
-rw-r--r--src/main/java/gregtech/common/GT_Client.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/gregtech/common/GT_Client.java b/src/main/java/gregtech/common/GT_Client.java
index 55efd20920..b9701bb451 100644
--- a/src/main/java/gregtech/common/GT_Client.java
+++ b/src/main/java/gregtech/common/GT_Client.java
@@ -152,6 +152,7 @@ public class GT_Client extends GT_Proxy
private GT_ClientPreference mPreference;
private boolean mFirstTick = false;
public static final int ROTATION_MARKER_RESOLUTION = 120;
+ private int mReloadCount;
public GT_Client() {
mCapeRenderer = new GT_CapeRenderer(mCapeList);
@@ -505,6 +506,12 @@ public class GT_Client extends GT_Proxy
@SubscribeEvent
public void onClientConnectedToServerEvent(FMLNetworkEvent.ClientConnectedToServerEvent aEvent) {
mFirstTick = true;
+ mReloadCount++;
+ }
+
+ @Override
+ public int getReloadCount() {
+ return mReloadCount;
}
@SubscribeEvent