This commit is contained in:
khj xiaogu 2021-10-16 20:47:50 +08:00
parent 045a6d6e46
commit 013c6a2b0a
No known key found for this signature in database
GPG key ID: DEA172814EAFF426
3 changed files with 5 additions and 2 deletions

View file

@ -199,5 +199,7 @@ jar {
]) ])
} }
} }
mixin {
add sourceSets.main, "steampowered.refmap.json"
}
jar.finalizedBy('reobfJar') jar.finalizedBy('reobfJar')

View file

@ -22,7 +22,7 @@ public class HandCrankBlockMixin {
* @author khjxiaogu * @author khjxiaogu
* @reason Disable fake player from making energy * @reason Disable fake player from making energy
* */ * */
@Inject(at = @At("INVOKE"), method = "use", cancellable = true) @Inject(at = @At("INVOKE"), method = "use", cancellable = true,remap=true)
public void use(BlockState state, World worldIn, BlockPos pos, PlayerEntity player, Hand handIn,BlockRayTraceResult hit,CallbackInfoReturnable<ActionResultType> ci) { public void use(BlockState state, World worldIn, BlockPos pos, PlayerEntity player, Hand handIn,BlockRayTraceResult hit,CallbackInfoReturnable<ActionResultType> ci) {
if(player instanceof FakePlayer) { if(player instanceof FakePlayer) {
worldIn.destroyBlock(pos,true); worldIn.destroyBlock(pos,true);

View file

@ -3,6 +3,7 @@
"minVersion": "0.8", "minVersion": "0.8",
"package": "com.teammoeg.steampowered.mixin", "package": "com.teammoeg.steampowered.mixin",
"compatibilityLevel": "JAVA_8", "compatibilityLevel": "JAVA_8",
"refmap": "steampowered.refmap.json",
"mixins": [ "mixins": [
"FlywheelTileEntityAccess", "FlywheelTileEntityAccess",
"HandCrankBlockMixin" "HandCrankBlockMixin"