Skip to content

Commit

Permalink
Port to Minecraft 1.20.4
Browse files Browse the repository at this point in the history
  • Loading branch information
realguyman committed Apr 7, 2024
1 parent 719ce19 commit ca893bd
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 22 deletions.
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ dependencies {
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_api}"
annotationProcessor modImplementation("io.wispforest:owo-lib:${project.owo_lib}")
modLocalRuntime "com.terraformersmc:modmenu:${project.mod_menu}"
modLocalRuntime "maven.modrinth:c2me-fabric:${project.c2me}"
modLocalRuntime "maven.modrinth:starlight:${project.starlight}"
// modLocalRuntime "maven.modrinth:c2me-fabric:${project.c2me}"
// modLocalRuntime "maven.modrinth:starlight:${project.starlight}"
// modLocalRuntime "vazkii.patchouli:Patchouli:${project.patchouli}"

// Choose one recipe viewer:
modLocalRuntime "me.shedaniel:RoughlyEnoughItems-fabric:${project.rei}"
// modLocalRuntime "me.shedaniel:RoughlyEnoughItems-fabric:${project.rei}"
// modLocalRuntime "dev.emi:emi:${project.emi}"
}

Expand Down
14 changes: 7 additions & 7 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
org.gradle.jvmargs=-Xmx1G

minecraft=1.20.2
mappings=1.20.2+build.4
fabric_loader=0.14.24
fabric_api=0.90.7+1.20.2
owo_lib=0.11.3+1.20.2
mod_menu=8.0.0
minecraft=1.20.4
mappings=1.20.4+build.3
fabric_loader=0.15.9
fabric_api=0.96.11+1.20.4
owo_lib=0.12.6+1.20.3
mod_menu=9.0.0
starlight=1.1.3+1.20.2
c2me=0.2.0+alpha.10.126+1.20.2
patchouli=1.20.1-83-FABRIC
rei=13.0.678
emi=1.0.24+1.20.2+fabric

version=0.13.3+1.20.2
version=0.13.3+1.20.4
group=io.github.realguyman
name=totally_lit
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

import net.minecraft.block.Block;
import net.minecraft.block.TorchBlock;
import net.minecraft.particle.ParticleEffect;
import net.minecraft.particle.DefaultParticleType;

public class LitTorchBlock extends TorchBlock {
private final Block unlitBlock;

public LitTorchBlock(Settings settings, ParticleEffect particle, Block unlitBlock) {
super(settings, particle);
public LitTorchBlock(Settings settings, DefaultParticleType particleType, Block unlitBlock) {
super(particleType, settings);
this.unlitBlock = unlitBlock;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

import net.minecraft.block.Block;
import net.minecraft.block.WallTorchBlock;
import net.minecraft.particle.ParticleEffect;
import net.minecraft.particle.DefaultParticleType;

public class LitWallTorchBlock extends WallTorchBlock {
private final Block unlitBlock;

public LitWallTorchBlock(Settings settings, ParticleEffect particleEffect, Block unlitBlock) {
super(settings, particleEffect);
public LitWallTorchBlock(Settings settings, DefaultParticleType particleType, Block unlitBlock) {
super(particleType, settings);
this.unlitBlock = unlitBlock;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

public class NoParticleTorchBlock extends TorchBlock {
public NoParticleTorchBlock(Settings settings) {
super(settings, null);
super(null, settings);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

public class NoParticleWallTorchBlock extends WallTorchBlock {
public NoParticleWallTorchBlock(Settings settings) {
super(settings, null);
super(null, settings);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ private void onPlaced(World world, BlockPos pos, BlockState state, @Nullable Liv
}

@Inject(method = "onBreak", at = @At("HEAD"))
private void onBreak(World world, BlockPos pos, BlockState state, PlayerEntity player, CallbackInfo ci) {
private void onBreak(World world, BlockPos pos, BlockState state, PlayerEntity player, CallbackInfoReturnable<BlockState> cir) {
if (!world.isClient() && (state.isIn(BlockTags.CANDLES) || state.isIn(BlockTags.CANDLE_CAKES) || state.isOf(Blocks.JACK_O_LANTERN) || state.isOf(Blocks.LANTERN) || state.isOf(Blocks.TORCH) || state.isOf(Blocks.WALL_TORCH) || state.getBlock() instanceof LitLanternBlock || state.getBlock() instanceof LitTorchBlock || state.getBlock() instanceof LitWallTorchBlock)) {
((ServerWorld) world).getBlockTickScheduler().clearNextTicks(new BlockBox(pos));
}
Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
},
"depends": {
"java": ">=17",
"minecraft": "1.20.2",
"fabricloader": ">=0.14.24",
"minecraft": "1.20.4",
"fabricloader": ">=0.15.9",
"fabric-api": "*",
"owo-lib": ">=0.11.3"
"owo-lib": ">=0.12.6"
},
"conflicts": {
"fading": "*",
Expand Down

0 comments on commit ca893bd

Please sign in to comment.