Skip to content

Commit

Permalink
mc1.16.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Plastoid501 committed Jul 15, 2024
1 parent 3c5584a commit 52fcb51
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 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 = 16
it.options.release = 8
}

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

sourceCompatibility = JavaVersion.VERSION_16
targetCompatibility = JavaVersion.VERSION_16
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}

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.17.1
yarn_mappings=1.17.1+build.65
minecraft_version=1.16.5
yarn_mappings=1.16.5+build.10
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.17.x
archives_base_name=restrict-placement-of-lava-in-lava-mc1.16.x

# Dependencies
fabric_version=0.46.1+1.17
fabric_version=0.42.0+1.16
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

import net.fabricmc.api.ModInitializer;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

public class RestrictPlacementOfLavaInLava implements ModInitializer {
// This logger is used to write text to the console and the log file.
// It is considered best practice to use your mod id as the logger's name.
// That way, it's clear which mod wrote info, warnings, and errors.
public static final Logger LOGGER = LoggerFactory.getLogger("restrict-placement-of-lava-in-lava");
public static final Logger LOGGER = LogManager.getLogger("restrict-placement-of-lava-in-lava");

@Override
public void onInitialize() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ private void onInteractBlock(ClientPlayerEntity player, ClientWorld world, Hand
BlockPos blockPos2 = blockPos.offset(direction);

ItemStack itemStack = player.getStackInHand(hand);
if (itemStack.isOf(Items.LAVA_BUCKET)) {
if (itemStack.getItem() == Items.LAVA_BUCKET) {
if (player.clientWorld.getBlockState(blockPos2).getFluidState().getFluid() == Fluids.LAVA) {
cir.setReturnValue(TypedActionResult.fail(itemStack).getResult());
cir.cancel();
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.17.x"
"minecraft": "1.16.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_16",
"compatibilityLevel": "JAVA_8",
"mixins": [
],
"injectors": {
Expand Down

0 comments on commit 52fcb51

Please sign in to comment.