Skip to content

Commit

Permalink
Switch to Minecraft 1.21.4
Browse files Browse the repository at this point in the history
  • Loading branch information
2No2Name committed Dec 3, 2024
1 parent 167b46f commit e15e453
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
6 changes: 3 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ plugins {

// Fabric: https://fabricmc.net/develop/
// Neoforge: https://neoforged.net/
val MINECRAFT_VERSION by extra { "1.21.3" }
val NEOFORGE_VERSION by extra { "21.3.40-beta" }
val MINECRAFT_VERSION by extra { "1.21.4" }
val NEOFORGE_VERSION by extra { "21.4.0-beta" }
val FABRIC_LOADER_VERSION by extra { "0.16.9" }
val FABRIC_API_VERSION by extra { "0.107.3+1.21.3" }
val FABRIC_API_VERSION by extra { "0.110.5+1.21.4" }

// This value can be set to null to disable Parchment.
// TODO: Add Parchment
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public abstract class AbstractFurnaceBlockEntityMixin extends BlockEntity implem
protected abstract boolean isLit();

@Shadow
int cookingProgress;
int cookingTimer;
private WrappedBlockEntityTickInvokerAccessor tickWrapper = null;
private TickingBlockEntity sleepingTicker = null;

Expand Down Expand Up @@ -59,7 +59,7 @@ private static void checkSleep(ServerLevel serverLevel, BlockPos blockPos, Block
}

private void checkSleep(BlockState state) {
if (!this.isLit() && this.cookingProgress == 0 && (state.is(Blocks.FURNACE) || state.is(Blocks.BLAST_FURNACE) || state.is(Blocks.SMOKER)) && this.level != null) {
if (!this.isLit() && this.cookingTimer == 0 && (state.is(Blocks.FURNACE) || state.is(Blocks.BLAST_FURNACE) || state.is(Blocks.SMOKER)) && this.level != null) {
this.lithium$startSleeping();
}
}
Expand Down
5 changes: 1 addition & 4 deletions fabric/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@
"accessWidener": "lithium.accesswidener",
"depends": {
"fabricloader": ">=0.15.1",
"minecraft" : [
"1.21.2",
"1.21.3"
]
"minecraft" : "1.21.4"
},
"breaks": {
"optifabric": "*"
Expand Down
2 changes: 1 addition & 1 deletion neoforge/src/main/resources/META-INF/neoforge.mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Lithium is a free and open-source optimization mod for Minecraft which makes a w
[[dependencies.lithium]]
modId = "minecraft"
type = "required"
versionRange = "[1.21.2,1.21.3]"
versionRange = "1.21.4"
ordering = "NONE"
side = "BOTH"

Expand Down

0 comments on commit e15e453

Please sign in to comment.