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')
|
||||
|
|
|
@ -22,7 +22,7 @@ public class HandCrankBlockMixin {
|
|||
* @author khjxiaogu
|
||||
* @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) {
|
||||
if(player instanceof FakePlayer) {
|
||||
worldIn.destroyBlock(pos,true);
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
"minVersion": "0.8",
|
||||
"package": "com.teammoeg.steampowered.mixin",
|
||||
"compatibilityLevel": "JAVA_8",
|
||||
"refmap": "steampowered.refmap.json",
|
||||
"mixins": [
|
||||
"FlywheelTileEntityAccess",
|
||||
"HandCrankBlockMixin"
|
||||
|
|
Loading…
Reference in a new issue