Skip to content

Commit

Permalink
1.16 update
Browse files Browse the repository at this point in the history
Fixed mixin
Increase version to 1.4.0
  • Loading branch information
AfterRebelion committed Jun 27, 2020
1 parent 3a61167 commit 0411719
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ org.gradle.daemon=false

# Fabric Properties
# check these on https://fabricmc.net/use
minecraft_version=1.15.2
yarn_mappings=1.15.2+build.17
minecraft_version=1.16.1
yarn_mappings=1.16.1+build.9
loader_version=0.8.8+build.202

# Mod Properties
mod_version = 1.3.0
mod_version = 1.4.0
maven_group = net.afterrebelion
archives_base_name = smokeextender

# Dependencies
# currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api
fabric_api_version=0.14.0+build.317-1.15
fabric_api_version=0.14.0+build.371-1.16
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import net.fabricmc.api.Environment;

import net.minecraft.client.particle.SpriteBillboardParticle;
import net.minecraft.world.World;
import net.minecraft.client.world.ClientWorld;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
Expand All @@ -13,13 +13,13 @@
@Environment(EnvType.CLIENT)
@Mixin(net.minecraft.client.particle.CampfireSmokeParticle.class)
public abstract class SmokeExtenderMixin extends SpriteBillboardParticle {
public SmokeExtenderMixin(World world_1, double double_1, double double_2, double double_3, double double_4, double double_5, double double_6) {
super(world_1, double_1, double_2, double_3, double_4, double_5, double_6);
public SmokeExtenderMixin(ClientWorld world, double x, double y, double z, double velocityX, double velocityY, double velocityZ) {
super(world, x, y, z, velocityX, velocityY, velocityZ);
}

@Inject(at = @At("RETURN"), method = "<init>(Lnet/minecraft/world/World;DDDDDDZ)V")
private void CampfireSmokeParticle (World world, double x, double y, double z, double velocityX, double velocityY, double velocityZ, boolean bl, CallbackInfo info) {
if (bl) {
@Inject(at = @At("RETURN"), method = "<init>(Lnet/minecraft/client/world/ClientWorld;DDDDDDZ)V")
private void CampfireSmokeParticle (ClientWorld world, double x, double y, double z, double velocityX, double velocityY, double velocityZ, boolean signalFire, CallbackInfo info) {
if (signalFire) {
// System.out.println("Injecting on the smoke constructor!");
this.maxAge += 560;
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@

"depends": {
"fabricloader": ">=0.8.8",
"minecraft": "1.15.x"
"minecraft": "1.16.x"
}
}

0 comments on commit 0411719

Please sign in to comment.