mirror of
https://github.com/Wurst-Imperium/Wurst7.git
synced 2024-09-20 01:12:13 +02:00
parent
07b1db1477
commit
c12f88314c
@ -5,11 +5,11 @@ org.gradle.jvmargs=-Xmx1G
|
||||
# check these at https://fabricmc.net/develop/ and
|
||||
# https://www.curseforge.com/minecraft/mc-mods/fabric-api
|
||||
minecraft_version=1.19.3
|
||||
yarn_mappings=1.19.3+build.1
|
||||
loader_version=0.14.11
|
||||
yarn_mappings=1.19.3+build.5
|
||||
loader_version=0.14.14
|
||||
|
||||
#Fabric api
|
||||
fabric_version=0.68.1+1.19.3
|
||||
fabric_version=0.75.1+1.19.3
|
||||
|
||||
# Mod Properties
|
||||
mod_version = v7.32-MC1.19.3
|
||||
|
@ -10,7 +10,7 @@ package net.wurstclient.mixin;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.At;
|
||||
import org.spongepowered.asm.mixin.injection.Inject;
|
||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
|
||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||
|
||||
import net.fabricmc.fabric.impl.client.indigo.renderer.render.TerrainRenderContext;
|
||||
import net.minecraft.block.BlockState;
|
||||
@ -23,18 +23,17 @@ import net.wurstclient.events.TesselateBlockListener.TesselateBlockEvent;
|
||||
@Mixin(TerrainRenderContext.class)
|
||||
public class TerrainRenderContextMixin
|
||||
{
|
||||
@Inject(at = {@At("HEAD")},
|
||||
method = {"tessellateBlock"},
|
||||
@Inject(at = @At("HEAD"),
|
||||
method = "tessellateBlock",
|
||||
cancellable = true,
|
||||
remap = false)
|
||||
private void tesselateBlock(BlockState blockState, BlockPos blockPos,
|
||||
final BakedModel model, MatrixStack matrixStack,
|
||||
CallbackInfoReturnable<Boolean> cir)
|
||||
private void onTessellateBlock(BlockState blockState, BlockPos blockPos,
|
||||
final BakedModel model, MatrixStack matrixStack, CallbackInfo ci)
|
||||
{
|
||||
TesselateBlockEvent event = new TesselateBlockEvent(blockState);
|
||||
EventManager.fire(event);
|
||||
|
||||
if(event.isCancelled())
|
||||
cir.cancel();
|
||||
ci.cancel();
|
||||
}
|
||||
}
|
||||
|
@ -30,7 +30,7 @@
|
||||
|
||||
"depends": {
|
||||
"fabricloader": ">=0.14.10",
|
||||
"fabric-api": ">=0.68.0",
|
||||
"fabric-api": ">=0.75.0",
|
||||
"minecraft": "~1.19.3-beta.3",
|
||||
"java": ">=17"
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user