Skip to content
This repository has been archived by the owner on Jun 14, 2024. It is now read-only.

Commit

Permalink
fix: Disabled the wrong mixin
Browse files Browse the repository at this point in the history
  • Loading branch information
null2264 committed Jan 19, 2024
1 parent c17d63a commit 08b6351
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 22 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
//#if FORGE>=1
package io.github.null2264.libreexpfix.mixin;
//$$ package io.github.null2264.libreexpfix.mixin;

import net.minecraft.world.entity.Entity;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.gen.Accessor;
//$$ import net.minecraft.world.entity.Entity;
//$$ import org.spongepowered.asm.mixin.Mixin;
//$$ import org.spongepowered.asm.mixin.gen.Accessor;

@Mixin(Entity.class)
public interface EntityAccessor {
@Accessor("id")
int getEntityId();
}
//$$ @Mixin(Entity.class)
//$$ public interface EntityAccessor {
//$$ @Accessor("id")
//$$ int getEntityId();
//$$ }
//#endif
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
//#if FORGE>=1
package io.github.null2264.libreexpfix.mixin;
//$$ package io.github.null2264.libreexpfix.mixin;

import net.minecraft.network.Connection;
//$$ import net.minecraft.network.Connection;
//#if MC>=1.20.2
//$$ import net.minecraft.server.network.ServerCommonPacketListenerImpl;
//#else
import net.minecraft.server.network.ServerGamePacketListenerImpl;
//$$ import net.minecraft.server.network.ServerGamePacketListenerImpl;
//#endif
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.gen.Accessor;
//$$ import org.spongepowered.asm.mixin.Mixin;
//$$ import org.spongepowered.asm.mixin.gen.Accessor;

//#if MC>=1.20.2
//$$ @Mixin(ServerCommonPacketListenerImpl.class)
//#else
@Mixin(ServerGamePacketListenerImpl.class)
//$$ @Mixin(ServerGamePacketListenerImpl.class)
//#endif
public interface ServerGamePacketListenerAccessor {
@Accessor("connection")
Connection getConn();
}
//$$ public interface ServerGamePacketListenerAccessor {
//$$ @Accessor("connection")
//$$ Connection getConn();
//$$ }
//#endif
6 changes: 3 additions & 3 deletions src/main/resources/libreexpfix.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"compatibilityLevel": "JAVA_17",
"mixins": [
//#if FORGE>=1
"EntityAccessor",
"ServerPlayerEntityMixin",
//$$ "EntityAccessor",
//$$ "ServerGamePacketListenerAccessor",
//#endif
"ServerGamePacketListenerAccessor"
"ServerPlayerEntityMixin",
],
"injectors": {
"defaultRequire": 1
Expand Down

0 comments on commit 08b6351

Please sign in to comment.