aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel
diff options
context:
space:
mode:
authorDanielshe <shekwancheung0528@gmail.com>2019-09-12 22:55:23 +0800
committerDanielshe <shekwancheung0528@gmail.com>2019-09-12 22:55:23 +0800
commita0d73236a41144009d5b469cb7dbcc29d82eb103 (patch)
treeae36292b51b3144a3c025b2dd786f669f02e2205 /src/main/java/me/shedaniel
parentd1f620a845d3b0bf1cf4f226b2beb723507aafa4 (diff)
parentf10e2f722b85015569275fe6201a565c4d4455a2 (diff)
downloadRoughlyEnoughItems-a0d73236a41144009d5b469cb7dbcc29d82eb103.tar.gz
RoughlyEnoughItems-a0d73236a41144009d5b469cb7dbcc29d82eb103.tar.bz2
RoughlyEnoughItems-a0d73236a41144009d5b469cb7dbcc29d82eb103.zip
Merge remote-tracking branch 'origin/3.x' into 3.x
Diffstat (limited to 'src/main/java/me/shedaniel')
-rw-r--r--src/main/java/me/shedaniel/rei/RoughlyEnoughItemsCore.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/me/shedaniel/rei/RoughlyEnoughItemsCore.java b/src/main/java/me/shedaniel/rei/RoughlyEnoughItemsCore.java
index 077cce647..768c97dbd 100644
--- a/src/main/java/me/shedaniel/rei/RoughlyEnoughItemsCore.java
+++ b/src/main/java/me/shedaniel/rei/RoughlyEnoughItemsCore.java
@@ -205,7 +205,7 @@ public class RoughlyEnoughItemsCore implements ClientModInitializer {
final Identifier recipeButtonTex = new Identifier("textures/gui/recipe_button.png");
AtomicLong lastSync = new AtomicLong(-1);
ClothClientHooks.SYNC_RECIPES.register((minecraftClient, recipeManager, synchronizeRecipesS2CPacket) -> {
- if (lastSync.get() > 0 && System.currentTimeMillis() - lastSync.get() > 5000) {
+ if (lastSync.get() > 0 && System.currentTimeMillis() - lastSync.get() <= 5000) {
RoughlyEnoughItemsCore.LOGGER.warn("[REI] Suppressing Sync Recipes!");
return;
}