mirror of
https://github.com/FabricMC/fabric.git
synced 2024-11-14 19:25:23 -05:00
19w12b
This commit is contained in:
parent
3083a67ca4
commit
163d37cd42
3 changed files with 5 additions and 10 deletions
|
@ -26,8 +26,8 @@ targetCompatibility = 1.8
|
|||
|
||||
archivesBaseName = "fabric"
|
||||
|
||||
def baseVersion = "0.2.4"
|
||||
def mcVersion = "19w12a"
|
||||
def baseVersion = "0.2.5"
|
||||
def mcVersion = "19w12b"
|
||||
|
||||
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.2"
|
||||
mappings "net.fabricmc:yarn:$mcVersion.1"
|
||||
modCompile "net.fabricmc:fabric-loader:0.3.7.109"
|
||||
}
|
||||
|
||||
|
|
|
@ -46,17 +46,12 @@ public class FabricCreativeGuiComponents {
|
|||
Type type;
|
||||
|
||||
public ItemGroupButtonWidget(int x, int y, Type type, CreativeGuiExtensions extensions) {
|
||||
super(x, y, 10, 11, type.text);
|
||||
super(x, y, 10, 11, type.text, (bw) -> type.clickConsumer.accept(extensions));
|
||||
this.extensions = extensions;
|
||||
this.type = type;
|
||||
this.gui = (CreativePlayerInventoryScreen) extensions;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onPressed() {
|
||||
type.clickConsumer.accept(extensions);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void render(int mouseX, int mouseY, float float_1) {
|
||||
this.visible = extensions.fabric_isButtonVisible(type);
|
||||
|
|
|
@ -40,7 +40,7 @@ public class ContainerMod implements ModInitializer {
|
|||
serverCommandSourceCommandDispatcher.register(ServerCommandManager
|
||||
.literal("container")
|
||||
.executes(context -> {
|
||||
BlockPos pos = context.getSource().getEntity().getPos();
|
||||
BlockPos pos = new BlockPos(context.getSource().getEntity());
|
||||
|
||||
//Opens a container, sending the block pos
|
||||
ContainerProviderRegistry.INSTANCE.openContainer(EXAMPLE_INVENTORY_CONTAINER, context.getSource().getPlayer(), buf -> buf.writeBlockPos(pos));
|
||||
|
|
Loading…
Reference in a new issue