-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Override Forge methods instead of injecting into the Forge-modified method via ExplosionMixin [Forge] - Fixed ValueSettingScreenMixin [common] by removing remap = false
- Loading branch information
1 parent
dd10a2b
commit edc2c25
Showing
6 changed files
with
44 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 0 additions & 25 deletions
25
forge/src/main/java/rbasamoyai/createbigcannons/forge/mixin/ExplosionMixin.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
forge/src/main/java/rbasamoyai/createbigcannons/forge/mixin/ProjectileBlockMixin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package rbasamoyai.createbigcannons.forge.mixin; | ||
|
||
import org.spongepowered.asm.mixin.Mixin; | ||
|
||
import net.minecraft.core.BlockPos; | ||
import net.minecraft.world.level.Explosion; | ||
import net.minecraft.world.level.Level; | ||
import net.minecraft.world.level.block.DirectionalBlock; | ||
import net.minecraft.world.level.block.state.BlockState; | ||
import rbasamoyai.createbigcannons.munitions.big_cannon.ProjectileBlock; | ||
import rbasamoyai.createbigcannons.remix.CBCExplodableBlock; | ||
|
||
@Mixin(ProjectileBlock.class) | ||
public class ProjectileBlockMixin extends DirectionalBlock implements CBCExplodableBlock { | ||
|
||
ProjectileBlockMixin(Properties arg) { super(arg); } | ||
|
||
@Override | ||
public void onBlockExploded(BlockState state, Level level, BlockPos pos, Explosion explosion) { | ||
this.createbigcannons$onBlockExplode(level, pos, state, explosion); | ||
super.onBlockExploded(state, level, pos, explosion); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters