Skip to content

Commit

Permalink
Merge pull request #13 from RappyLabyAddons/feat/1.20.3
Browse files Browse the repository at this point in the history
Implement `1.20.3`
  • Loading branch information
RappyTV authored Dec 6, 2023
2 parents bf5f66a + 95da86d commit 939a24b
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 5 deletions.
7 changes: 4 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ labyMod {
displayName = "Toolbreak Warning"
author = "RappyTV"
description = "Stops you from using your currently used tool when its almost destroyed."
minecraftVersion = "1.8<1.20.2"
version = System.getenv().getOrDefault("VERSION", "1.3.1")
minecraftVersion = "1.8<1.20.3"
version = System.getenv().getOrDefault("VERSION", "1.3.2")
}

minecraft {
Expand All @@ -35,7 +35,8 @@ labyMod {
"1.19.3",
"1.19.4",
"1.20.1",
"1.20.2"
"1.20.2",
"1.20.3"
) { version, provider ->
configureRun(provider, version)
}
Expand Down
1 change: 0 additions & 1 deletion core/src/main/java/com/rappytv/toolwarn/TbwAddon.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ public class TbwAddon extends LabyAddon<TbwConfiguration> {

@Override
protected void enable() {
// "§c§lTBW §8» §7"
prefix = Component
.text("TBW ", Style.builder().color(NamedTextColor.RED).decorate(TextDecoration.BOLD).build())
.append(Component.text("» ", NamedTextColor.DARK_GRAY));
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
package com.rappytv.toolwarn.v1_20_3;

import com.rappytv.toolwarn.util.ITbwSounds;
import net.labymod.api.client.resources.ResourceLocation;
import net.labymod.api.models.Implements;
import org.jetbrains.annotations.NotNull;

import javax.inject.Singleton;

@Singleton
@Implements(ITbwSounds.class)
public class TbwSoundImpl implements ITbwSounds {

private final ResourceLocation plingSound = ResourceLocation.create("minecraft", "block.note_block.pling");
private final ResourceLocation levelUpSound = ResourceLocation.create("minecraft", "entity.player.levelup");
private final ResourceLocation glassBreakSound = ResourceLocation.create("minecraft", "block.glass.break");
private final ResourceLocation anvilUseSound = ResourceLocation.create("minecraft", "block.anvil.use");

@Override
public ResourceLocation getPlingSound() {
return plingSound;
}
@Override
public ResourceLocation getLevelUpSound() {
return levelUpSound;
}
@Override
public @NotNull ResourceLocation getGlassBreakSound() {
return glassBreakSound;
}
@Override
public ResourceLocation getAnvilUseSound() {
return anvilUseSound;
}
}
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
rootProject.name = "toolwarn"

pluginManagement {
val labyGradlePluginVersion = "0.3.29"
val labyGradlePluginVersion = "0.3.38"
plugins {
id("net.labymod.gradle") version (labyGradlePluginVersion)
}
Expand Down

0 comments on commit 939a24b

Please sign in to comment.