Browse Source

Merge remote-tracking branch 'origin/3.x' into 3.x

Danielshe 5 years ago
parent
commit
d953ecb4c4

+ 17 - 0
.github/workflows/gradle.yml

@@ -0,0 +1,17 @@
+name: Java CI
+
+on: [push]
+
+jobs:
+  build:
+
+    runs-on: ubuntu-latest
+
+    steps:
+    - uses: actions/checkout@v1
+    - name: Set up JDK 1.8
+      uses: actions/setup-java@v1
+      with:
+        java-version: 1.8
+    - name: Build with Gradle
+      run: ./gradlew clean build

+ 19 - 0
.github/workflows/stale.yml

@@ -0,0 +1,19 @@
+name: Mark stale issues and pull requests
+
+on:
+  schedule:
+  - cron: "0 0 * * *"
+
+jobs:
+  stale:
+
+    runs-on: ubuntu-latest
+    
+    steps:
+    - uses: actions/stale@v1
+      with:
+        repo-token: ${{ secrets.GITHUB_TOKEN }}
+        stale-issue-message: 'Stale issue message'
+        stale-pr-message: 'Stale pull request message'
+        stale-issue-label: 'no-issue-activity'
+        stale-pr-label: 'no-pr-activity'

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

+ 3 - 2
src/main/resources/fabric.mod.json

@@ -46,7 +46,7 @@
   "custom": {
     "rei:translators": {
       "English": "Danielshe",
-      "Japanese": "swordglowsblue",
+      "Japanese": ["swordglowsblue", "hinataaki"],
       "Simplified Chinese": ["XuyuEre", "Danielshe"],
       "Traditional Chinese": ["hugoalh", "gxy17886", "Danielshe"],
       "French": "Yanis48",
@@ -56,7 +56,8 @@
       "LOLCAT": "Danielshe",
       "Upside Down English": "Danielshe",
       "Brazilian Portuguese": ["thiagokenis", "joaoh1"],
-      "Bulgarian": "geniiii"
+      "Bulgarian": "geniiii",
+      "Russian": "MrYonter"
     }
   }
 }