mirror of
https://github.com/ViaVersion/ViaProxy.git
synced 2025-01-02 18:28:33 +01:00
Fixed ClassTransform issues
This commit is contained in:
parent
355c349f79
commit
62b70303c4
@ -22,7 +22,6 @@ import com.viaversion.nbt.tag.CompoundTag;
|
|||||||
import com.viaversion.nbt.tag.ListTag;
|
import com.viaversion.nbt.tag.ListTag;
|
||||||
import com.viaversion.viaversion.api.minecraft.item.Item;
|
import com.viaversion.viaversion.api.minecraft.item.Item;
|
||||||
import com.viaversion.viaversion.api.minecraft.item.data.ModifierData;
|
import com.viaversion.viaversion.api.minecraft.item.data.ModifierData;
|
||||||
import com.viaversion.viaversion.api.type.Type;
|
|
||||||
import com.viaversion.viaversion.libs.fastutil.ints.Int2ObjectMap;
|
import com.viaversion.viaversion.libs.fastutil.ints.Int2ObjectMap;
|
||||||
import com.viaversion.viaversion.libs.fastutil.ints.Int2ObjectOpenHashMap;
|
import com.viaversion.viaversion.libs.fastutil.ints.Int2ObjectOpenHashMap;
|
||||||
import com.viaversion.viaversion.libs.gson.JsonElement;
|
import com.viaversion.viaversion.libs.gson.JsonElement;
|
||||||
@ -54,8 +53,13 @@ public abstract class MixinItemPacketRewriter1_9 extends ItemRewriter<Clientboun
|
|||||||
@Unique
|
@Unique
|
||||||
private final Map<String, Map<String, Pair<String, ModifierData>>> itemAttributes = new HashMap<>();
|
private final Map<String, Map<String, Pair<String, ModifierData>>> itemAttributes = new HashMap<>();
|
||||||
|
|
||||||
public MixinItemPacketRewriter1_9(Protocol1_8To1_9 protocol, Type<Item> itemType, Type<Item[]> itemArrayType, Type<Item> mappedItemType, Type<Item[]> mappedItemArrayType) {
|
// TODO: ClassTransform bug: Constructor merging is broken
|
||||||
|
/*public MixinItemPacketRewriter1_9(Protocol1_8To1_9 protocol, Type<Item> itemType, Type<Item[]> itemArrayType, Type<Item> mappedItemType, Type<Item[]> mappedItemArrayType) {
|
||||||
super(protocol, itemType, itemArrayType, mappedItemType, mappedItemArrayType);
|
super(protocol, itemType, itemArrayType, mappedItemType, mappedItemArrayType);
|
||||||
|
}*/
|
||||||
|
|
||||||
|
public MixinItemPacketRewriter1_9(Protocol1_8To1_9 protocol) {
|
||||||
|
super(null, null, null, null, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Inject(method = "<init>", at = @At("RETURN"))
|
@Inject(method = "<init>", at = @At("RETURN"))
|
||||||
|
Loading…
Reference in New Issue
Block a user