From ec61a3d363e87408f101575a69e9a92cd38c1668 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Mon, 17 Aug 2020 23:34:54 +0200 Subject: MC-126244 is not as fixed as mojang says --- src/main/java/re/jag/parquet/mixin/SellMapFactoryMixin.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/main/java') diff --git a/src/main/java/re/jag/parquet/mixin/SellMapFactoryMixin.java b/src/main/java/re/jag/parquet/mixin/SellMapFactoryMixin.java index fb6e796..b08cbee 100644 --- a/src/main/java/re/jag/parquet/mixin/SellMapFactoryMixin.java +++ b/src/main/java/re/jag/parquet/mixin/SellMapFactoryMixin.java @@ -19,14 +19,13 @@ import org.spongepowered.asm.mixin.Shadow; import java.util.Random; // No longer activated, but left here, just in case +// Update: Turns out Mojang sets bugs to fixed with dice @Mixin(targets="net.minecraft.village.TradeOffers$SellMapFactory") public class SellMapFactoryMixin implements TradeOffers.Factory { @Shadow private int price; @Shadow - private String structure; - @Shadow private MapIcon.Type iconType; @Shadow private int maxUses; @@ -43,7 +42,7 @@ public class SellMapFactoryMixin implements TradeOffers.Factory { ItemStack itemStack = FilledMapItem.createMap(serverWorld, blockPos.getX(), blockPos.getZ(), (byte)2, true, true); FilledMapItem.fillExplorationMap(serverWorld, itemStack); MapState.addDecorationsTag(itemStack, blockPos, "+", this.iconType); - itemStack.setCustomName(new LiteralText("You shall not crash")); + itemStack.setCustomName(new LiteralText("Mojang-award for code quality")); return new TradeOffer(new ItemStack(Items.EMERALD, this.price), new ItemStack(Items.COMPASS), itemStack, this.maxUses, this.experience, 0.2F); } } -- cgit v1.2.3