Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Naiively Fix #285 #286

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ repositories {
includeGroup "curse.maven"
}
}
maven {
url "https://api.modrinth.com/maven"
content {
includeGroup "maven.modrinth"
}
}
flatDir { dir 'libs' }
// Add repositories to retrieve artifacts from in here.
// You should only use this when depending on other mods because
Expand Down Expand Up @@ -57,10 +63,10 @@ dependencies {
//modImplementation "libs:Kiwi-1.18.2-fabric:${project.kiwi_version}"
modImplementation "curse.maven:kiwi-549404:4424042"
annotationProcessor "curse.maven:kiwi-549404:4424042"

modImplementation "curse.maven:jade-324717:4328558"
modImplementation "curse.maven:sodium-394468:3957319"
modImplementation "curse.maven:indium-459496:3957480"
modImplementation "maven.modrinth:sodium:mc1.19.2-0.4.4"
modImplementation "maven.modrinth:indium:1.0.9+mc1.19.2"
implementation 'org.joml:joml:1.10.4'
}

Expand Down Expand Up @@ -143,4 +149,4 @@ modrinth {
required.project "kiwi"
optional.project "cloth-config"
}
}
}
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ minecraft_version=1.19.2
yarn_mappings=1.19.2+build.13
loader_version=0.14.9
# Mod Properties
mod_version=5.1.1
mod_version=5.1.2
mod_id=snowrealmagic
maven_group=snownee.snowrealmagic
archives_base_name=SnowRealMagic
Expand Down
1 change: 1 addition & 0 deletions src/main/java/snownee/snow/block/EntitySnowLayerBlock.java
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ public void randomTick(BlockState state, ServerLevel worldIn, BlockPos pos, Rand
BlockState stateIn = getRaw(state, worldIn, pos);
if (SnowCommonConfig.retainOriginalBlocks) {
worldIn.setBlockAndUpdate(pos, stateIn);
worldIn.updateNeighborsAt(pos, state.getBlock());
return;
}
super.randomTick(state, worldIn, pos, random);
Expand Down
1 change: 1 addition & 0 deletions src/main/java/snownee/snow/block/SnowFenceBlock.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public SnowFenceBlock(Properties properties) {
public void randomTick(BlockState state, ServerLevel worldIn, BlockPos pos, RandomSource random) {
if (SnowCommonConfig.retainOriginalBlocks || ModUtil.shouldMelt(worldIn, pos)) {
worldIn.setBlockAndUpdate(pos, getRaw(state, worldIn, pos));
worldIn.updateNeighborsAt(pos, state.getBlock());
}
}

Expand Down
1 change: 1 addition & 0 deletions src/main/java/snownee/snow/block/SnowFenceGateBlock.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public BlockEntity newBlockEntity(BlockPos pos, BlockState state) {
public void randomTick(BlockState state, ServerLevel worldIn, BlockPos pos, RandomSource random) {
if (SnowCommonConfig.retainOriginalBlocks || ModUtil.shouldMelt(worldIn, pos)) {
worldIn.setBlockAndUpdate(pos, getRaw(state, worldIn, pos));
worldIn.updateNeighborsAt(pos, state.getBlock());
}
}

Expand Down
1 change: 1 addition & 0 deletions src/main/java/snownee/snow/block/SnowSlabBlock.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ public boolean isPathfindable(BlockState state, BlockGetter worldIn, BlockPos po
public void randomTick(BlockState state, ServerLevel worldIn, BlockPos pos, RandomSource random) {
if (SnowCommonConfig.retainOriginalBlocks || ModUtil.shouldMelt(worldIn, pos)) {
worldIn.setBlockAndUpdate(pos, getRaw(state, worldIn, pos));
worldIn.updateNeighborsAt(pos, state.getBlock());
}
}

Expand Down
1 change: 1 addition & 0 deletions src/main/java/snownee/snow/block/SnowStairsBlock.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public void onRemove(BlockState state, Level worldIn, BlockPos pos, BlockState n
public void randomTick(BlockState state, ServerLevel worldIn, BlockPos pos, RandomSource random) {
if (SnowCommonConfig.retainOriginalBlocks || ModUtil.shouldMelt(worldIn, pos)) {
worldIn.setBlockAndUpdate(pos, getRaw(state, worldIn, pos));
worldIn.updateNeighborsAt(pos, state.getBlock());
}
}

Expand Down
1 change: 1 addition & 0 deletions src/main/java/snownee/snow/block/SnowWallBlock.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public SnowWallBlock(Properties properties) {
public void randomTick(BlockState state, ServerLevel worldIn, BlockPos pos, RandomSource random) {
if (SnowCommonConfig.retainOriginalBlocks || ModUtil.shouldMelt(worldIn, pos)) {
worldIn.setBlockAndUpdate(pos, getRaw(state, worldIn, pos));
worldIn.updateNeighborsAt(pos, state.getBlock());
}
}

Expand Down