Ver código fonte

20w21a

Signed-off-by: shedaniel <daniel@shedaniel.me>
shedaniel 5 anos atrás
pai
commit
71189e8fc8

+ 2 - 3
build.gradle

@@ -1,5 +1,5 @@
 plugins {
-    id("fabric-loom") version "0.4.5"
+    id("fabric-loom") version "0.4-SNAPSHOT"
     id("maven-publish")
     id("java")
     id("java-library")
@@ -48,9 +48,8 @@ dependencies {
     mappings("me.shedaniel:legacy-yarn:${project.yarn_version}:v2")
     modApi("net.fabricmc:fabric-loader:${project.fabricloader_version}")
     modApi("net.fabricmc.fabric-api:fabric-api:${project.fabric_api}") {
-        exclude(module: "fabric-dimensions-v1")
+        exclude(group: "net.fabricmc")
         exclude(module: "fabric-biomes-v1")
-        exclude(module: "fabric-events-interaction-v0")
     }
     modApi("me.shedaniel.cloth:cloth-events:${cloth_events_version}") {
         transitive = false

+ 6 - 6
gradle.properties

@@ -1,13 +1,13 @@
 org.gradle.jvmargs=-Xmx3G
-mod_version=4.3.10-unstable
-supported_version=20w20a
-minecraft_version=20w20a
-yarn_version=20w20a+build.1+legacy.20w09a+build.8
-fabricloader_version=0.8.2+build.194
+mod_version=4.3.11-unstable
+supported_version=20w21a
+minecraft_version=20w21a
+yarn_version=20w21a+build.7+legacy.20w09a+build.8
+fabricloader_version=0.8.4+build.198
 cloth_events_version=2.2.0-unstable
 cloth_config_version=4.3.2-unstable
 modmenu_version=1.11.4+build.9
-fabric_api=0.10.8+build.345-1.16
+fabric_api=0.10.10+build.347-1.16
 autoconfig1u=3.0.1-unstable
 api_include=me.shedaniel.cloth:cloth-events,me.shedaniel.cloth:config-2,me.sargunvohra.mcmods:autoconfig1u
 api_exculde=

+ 3 - 2
src/main/java/me/shedaniel/rei/RoughlyEnoughItemsNetwork.java

@@ -40,6 +40,7 @@ import net.minecraft.server.network.ServerPlayerEntity;
 import net.minecraft.text.TranslatableText;
 import net.minecraft.util.Formatting;
 import net.minecraft.util.Identifier;
+import net.minecraft.util.Util;
 
 import java.util.Comparator;
 import java.util.List;
@@ -118,9 +119,9 @@ public class RoughlyEnoughItemsNetwork implements ModInitializer {
                             ServerSidePacketRegistry.INSTANCE.sendToPlayer(player, NOT_ENOUGH_ITEMS_PACKET, buf);
                         }
                     } catch (IllegalStateException e) {
-                        player.sendMessage(new TranslatableText(e.getMessage()).formatted(Formatting.RED));
+                        player.sendMessage(new TranslatableText(e.getMessage()).formatted(Formatting.RED), Util.field_25140);
                     } catch (Exception e) {
-                        player.sendMessage(new TranslatableText("error.rei.internal.error", e.getMessage()).formatted(Formatting.RED));
+                        player.sendMessage(new TranslatableText("error.rei.internal.error", e.getMessage()).formatted(Formatting.RED), Util.field_25140);
                         e.printStackTrace();
                     }
                 } catch (Exception e) {