Skip to content

Commit

Permalink
mc1.17.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Plastoid501 committed Jul 15, 2024
1 parent 4df1d55 commit 3c5584a
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ processResources {
}

tasks.withType(JavaCompile).configureEach {
it.options.release = 17
it.options.release = 16
}

java {
Expand All @@ -47,8 +47,8 @@ java {
// If you remove this line, sources will not be generated.
withSourcesJar()

sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
sourceCompatibility = JavaVersion.VERSION_16
targetCompatibility = JavaVersion.VERSION_16
}

jar {
Expand Down
8 changes: 4 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ org.gradle.parallel=true

# Fabric Properties
# check these on https://fabricmc.net/develop
minecraft_version=1.18.2
yarn_mappings=1.18.2+build.4
minecraft_version=1.17.1
yarn_mappings=1.17.1+build.65
loader_version=0.15.11

# Mod Properties
mod_version=1.0.0
maven_group=net.plastoid501.rpll
archives_base_name=restrict-placement-of-lava-in-lava-mc1.18.x
archives_base_name=restrict-placement-of-lava-in-lava-mc1.17.x

# Dependencies
fabric_version=0.77.0+1.18.2
fabric_version=0.46.1+1.17
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ private void onInteractBlock(ClientPlayerEntity player, ClientWorld world, Hand

ItemStack itemStack = player.getStackInHand(hand);
if (itemStack.isOf(Items.LAVA_BUCKET)) {
if (player.clientWorld.getBlockState(blockPos2).getFluidState().isOf(Fluids.LAVA)) {
if (player.clientWorld.getBlockState(blockPos2).getFluidState().getFluid() == Fluids.LAVA) {
cir.setReturnValue(TypedActionResult.fail(itemStack).getResult());
cir.cancel();
player.sendMessage(Text.of("Restrict Placement of Lava in Lava"), true);
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 @@ -23,7 +23,7 @@
"restrict-placement-of-lava-in-lava.mixins.json"
],
"depends": {
"minecraft": "1.18.x"
"minecraft": "1.17.x"
},
"suggests": {
"another-mod": "*"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"required": true,
"package": "net.plastoid501.rpll.mixin",
"compatibilityLevel": "JAVA_17",
"compatibilityLevel": "JAVA_16",
"mixins": [
],
"injectors": {
Expand Down

0 comments on commit 3c5584a

Please sign in to comment.