Просмотр исходного кода

Update RoughlyEnoughItemsCore.java

Danielshe 5 лет назад
Родитель
Сommit
9947fd2b90
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/main/java/me/shedaniel/rei/RoughlyEnoughItemsCore.java

+ 1 - 1
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;
             }