mixins
This commit is contained in:
parent
045a6d6e46
commit
013c6a2b0a
3 changed files with 5 additions and 2 deletions
|
@ -199,5 +199,7 @@ jar {
|
||||||
])
|
])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
mixin {
|
||||||
|
add sourceSets.main, "steampowered.refmap.json"
|
||||||
|
}
|
||||||
jar.finalizedBy('reobfJar')
|
jar.finalizedBy('reobfJar')
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue