Skip to content

Commit

Permalink
Fix incompatibility with other explosion mixins, closes #24
Browse files Browse the repository at this point in the history
  • Loading branch information
Pyrofab committed Dec 11, 2021
1 parent 8bd7e99 commit 54e93cb
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ dependencies {
modImplementation "net.fabricmc.fabric-api:fabric-api:${fabric_version}"

// modRuntime "curse.maven:mobz-336554:2826831"
modRuntime "curse.maven:carpet-349239:3542018"

compileOnly "com.google.code.findbugs:jsr305:3.0.2"
compileOnly "org.jetbrains:annotations:19.0.0"
Expand Down
5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
------------------------------------------------------
Version 1.7.1
------------------------------------------------------
- Fixed crash at launch with Carpet and KubeJS

------------------------------------------------------
Version 1.7.0
------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ fabric_version=0.43.1+1.18

# Base properties
mod_name = Creeper Spores
mod_version = 1.7.0
mod_version = 1.7.1
owners = Ladysnake
maven_group = io.github.ladysnake

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public abstract class ExplosionMixin {


// Using ModifyVariable is way easier than an Inject capturing every local
@ModifyVariable(method = "collectBlocksAndDamageEntities", at = @At(value = "INVOKE", target = "Lnet/minecraft/entity/Entity;damage(Lnet/minecraft/entity/damage/DamageSource;F)Z"))
@ModifyVariable(method = "collectBlocksAndDamageEntities", at = @At(value = "INVOKE", target = "Lnet/minecraft/entity/Entity;damage(Lnet/minecraft/entity/damage/DamageSource;F)Z", shift = At.Shift.AFTER), ordinal = 0)
private Entity spreadSpores(Entity affectedEntity) {
if (this.getCausingEntity() instanceof SporeSpreader) {
((SporeSpreader) this.getCausingEntity()).spreadSpores((Explosion) (Object) this, new Vec3d(this.x, this.y, this.z), affectedEntity);
Expand Down

0 comments on commit 54e93cb

Please sign in to comment.