mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-02-01 19:46:42 +01:00
Fix mixins
This commit is contained in:
parent
3cee5fa5a3
commit
044a175696
2 changed files with 2 additions and 2 deletions
|
@ -40,7 +40,7 @@ abstract class MixinPlayerEntity extends LivingEntity implements PonyContainer<P
|
|||
return get().onImpact(distance);
|
||||
}
|
||||
|
||||
@Inject(method = "eatFood(Lnet/minecraft/world/World;Lnet/minecraft/item/ItemStack;)Lnet/minecraft/world/World;net/minecraft/item/ItemStack;",
|
||||
@Inject(method = "eatFood(Lnet/minecraft/world/World;Lnet/minecraft/item/ItemStack;)Lnet/minecraft/item/ItemStack;",
|
||||
at = @At("HEAD"))
|
||||
public void onEatFood(World world, ItemStack stack, CallbackInfoReturnable<ItemStack> info) {
|
||||
if (stack.isFood()) {
|
||||
|
|
|
@ -26,7 +26,7 @@ abstract class MixinGameRenderer implements AutoCloseable, SynchronousResourceRe
|
|||
.calculateFieldOfView(info.getReturnValue()));
|
||||
}
|
||||
|
||||
@Inject(method = "renderWorld(FLLnet/minecraft/client/util/math/MatrixStack;)V",
|
||||
@Inject(method = "renderWorld(FJLnet/minecraft/client/util/math/MatrixStack;)V",
|
||||
at = @At("HEAD"))
|
||||
public void onRenderWorld(float tickDelta, long limitTime, MatrixStack matrices, CallbackInfo info) {
|
||||
WorldRenderDelegate.INSTANCE.applyWorldTransform(matrices, tickDelta);
|
||||
|
|
Loading…
Reference in a new issue