Skip to content

Commit

Permalink
Add 0.8.7
Browse files Browse the repository at this point in the history
  • Loading branch information
shedaniel committed Aug 12, 2024
1 parent 6af7e8d commit 398317b
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ license {
include "**/*.java"
}

def patchingVersions = ["0.8.2", "0.8.4", "0.8.5"]
def patchingVersions = ["0.8.2", "0.8.4", "0.8.5", "0.8.7"]

dependencies {
compileOnly "me.shedaniel:static-mixin:1.0.+"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/*
* This file is part of Mixin, licensed under the MIT License (MIT).
*
* Copyright (c) architectury, FabricMC, SpongePowered
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/

package dev.architectury.patchedmixin.mixin.v00807;

import dev.architectury.patchedmixin.base.RemappingReferenceMapperBase;
import me.shedaniel.staticmixin.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.struct.MemberInfo;
import org.spongepowered.asm.mixin.refmap.RemappingReferenceMapper;
import org.spongepowered.asm.util.Quantifier;

@Mixin(RemappingReferenceMapper.class)
public class MixinRemappingReferenceMapper implements RemappingReferenceMapperBase {
@Override
public MemberInfo arch$newMemberInfo(String name) {
return new MemberInfo(name, Quantifier.DEFAULT);
}
}
11 changes: 11 additions & 0 deletions src/mixin0_8_7/resources/mixin0_8_7.mixin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"compatibilityLevel": "JAVA_8",
"package": "dev.architectury.patchedmixin.mixin",
"mixins": [
"MixinAnnotatedMixins",
"MixinMixinConfig",
"MixinMixinPreProcessorStandard",
"MixinRemappingReferenceMapper",
"v00807.MixinRemappingReferenceMapper"
]
}

0 comments on commit 398317b

Please sign in to comment.