Fix ItemGroup buttons not working

This commit is contained in:
modmuss50 2019-03-14 19:51:51 +00:00
parent 250befa01f
commit fa4b8dfc92
2 changed files with 5 additions and 6 deletions

View file

@ -27,7 +27,7 @@ targetCompatibility = 1.8
archivesBaseName = "fabric"
def baseVersion = "0.2.3"
def mcVersion = "19w11a"
def mcVersion = "19w11b"
def ENV = System.getenv()
version = baseVersion + "." + (ENV.BUILD_NUMBER ?: "local")
@ -38,7 +38,7 @@ minecraft {
dependencies {
minecraft "com.mojang:minecraft:$mcVersion"
mappings "net.fabricmc:yarn:$mcVersion.1"
mappings "net.fabricmc:yarn:$mcVersion.3"
modCompile "net.fabricmc:fabric-loader:0.3.7.109"
}

View file

@ -17,9 +17,9 @@
package net.fabricmc.fabric.impl.itemgroup;
import com.mojang.blaze3d.platform.GlStateManager;
import net.minecraft.class_4185;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.gui.ingame.CreativePlayerInventoryScreen;
import net.minecraft.client.gui.widget.ButtonWidget;
import net.minecraft.client.resource.language.I18n;
import net.minecraft.item.ItemGroup;
import net.minecraft.util.Identifier;
@ -39,7 +39,7 @@ public class FabricCreativeGuiComponents {
COMMON_GROUPS.add(ItemGroup.HOTBAR);
}
public static class ItemGroupButtonWidget extends ButtonWidget {
public static class ItemGroupButtonWidget extends class_4185 {
CreativeGuiExtensions extensions;
CreativePlayerInventoryScreen gui;
@ -53,8 +53,7 @@ public class FabricCreativeGuiComponents {
}
@Override
public void method_19347(double double_1, double double_2) {
super.method_19347(double_1, double_2);
public void method_1826() {
type.clickConsumer.accept(extensions);
}