Skip to content

Commit

Permalink
Update to 1.17.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Patbox committed Jul 6, 2021
1 parent 5a3a749 commit 691dc53
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 8 deletions.
25 changes: 20 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,24 @@ repositories {
// for more information about repositories.
maven { url 'https://maven.nucleoid.xyz' }
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
maven { url 'https://api.modrinth.com/maven' }
mavenLocal()

maven {
/*maven {
name = "TerraformersMC"
url = "https://maven.terraformersmc.com/"
}
}*/

maven {
name = "Ladysnake Libs"
url = "https://ladysnake.jfrog.io/artifactory/mods"
}

flatDir {
dirs './modsWithCompat'
}
maven { url "https://maven.jamieswhiteshirt.com/libs-release/" }

}

dependencies {
Expand All @@ -39,14 +48,20 @@ dependencies {
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"


modImplementation include("eu.pb4:sgui:1.0.0-rc2-1.17")
modImplementation include("eu.pb4:sgui:1.0.0-rc3-1.17.1")
modImplementation include("eu.pb4:hologram-api:0.1.1+1.17")
modImplementation include("eu.pb4:placeholder-api:1.0.0-1.17")
modImplementation include("eu.pb4:placeholder-api:1.0.1+1.17")
modImplementation include("eu.pb4:polymer:0.1.0-pre5-1.17")
modImplementation include("fr.catcore:server-translations-api:1.4.5+1.17")
modImplementation include("me.lucko:fabric-permissions-api:0.1-SNAPSHOT")

modCompileOnly "dev.emi:trinkets:3.0.0"
//modCompileOnly "dev.emi:trinkets:3.0.0"
modCompileOnly "maven.modrinth:trinkets:3.0.0"

modCompileOnly "draylar:get-off-my-lawn:1.17-1.4.0-beta"
modCompileOnly "com.jamieswhiteshirt:rtree-3i-lite-fabric:0.3.0"
modCompileOnly "io.github.onyxstudios.Cardinal-Components-API:cardinal-components-base:3.0.0-nightly.21w19a"


// PSA: Some older mods, compiled on Loom 0.2.1, might have outdated Maven POMs.
// You may need to force-disable transitiveness on them.
Expand Down
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ org.gradle.jvmargs=-Xmx1G

# Fabric Properties
# check these on https://fabricmc.net/use
minecraft_version=1.17
yarn_mappings=1.17+build.13
minecraft_version=1.17.1
yarn_mappings=1.17.1+build.1
loader_version=0.11.3

# Mod Properties
mod_version = 1.0.5
mod_version = 1.0.6+1.17.1
maven_group = eu.pb4
archives_base_name = graves

Expand Down
Binary file not shown.
4 changes: 4 additions & 0 deletions src/main/java/eu/pb4/graves/GravesMod.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package eu.pb4.graves;

import eu.pb4.graves.compat.GomlCompat;
import eu.pb4.graves.compat.TrinketsCompat;
import eu.pb4.graves.grave.GraveBlock;
import eu.pb4.graves.grave.GraveBlockEntity;
Expand Down Expand Up @@ -32,6 +33,9 @@ public void onInitialize() {
if (loader.isModLoaded("trinkets")) {
TrinketsCompat.register();
}
if (loader.isModLoaded("goml")) {
GomlCompat.register();
}

ServerLifecycleEvents.SERVER_STARTING.register((server) -> ConfigManager.loadConfig());
ServerLifecycleEvents.SERVER_STARTED.register((server ->
Expand Down
18 changes: 18 additions & 0 deletions src/main/java/eu/pb4/graves/compat/GomlCompat.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package eu.pb4.graves.compat;


import draylar.goml.api.event.ClaimEvents;
import eu.pb4.graves.grave.GraveBlockEntity;
import net.minecraft.util.ActionResult;

public class GomlCompat {
public static void register() {
ClaimEvents.PERMISSION_DENIED.register((player, world, hand, pos, reason) -> {
if (world.getBlockEntity(pos) instanceof GraveBlockEntity grave && grave.canPlayerUse(player)) {
return ActionResult.FAIL;
}

return ActionResult.PASS;
});
}
}

0 comments on commit 691dc53

Please sign in to comment.