Skip to content

Commit 72c2132

Browse files
committed
fix bundle & explosions
1 parent a3d3e51 commit 72c2132

File tree

4 files changed

+14
-22
lines changed

4 files changed

+14
-22
lines changed

build.gradle

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,14 @@ repositories {
1919
// for more information about repositories.
2020
}
2121

22-
configurations {
23-
modIncludeImplementation
24-
25-
implementation.extendsFrom shadow
26-
include.extendsFrom modIncludeImplementation
27-
modImplementation.extendsFrom modIncludeImplementation
28-
implementation.extendsFrom shadow
29-
}
30-
3122
apply plugin: 'com.github.johnrengelman.shadow'
3223

3324
dependencies {
3425
// To change the versions see the gradle.properties file
3526
minecraft "com.mojang:minecraft:${project.minecraft_version}"
3627
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
3728
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
38-
modIncludeImplementation "io.socket:socket.io-client:2.1.0"
29+
shadow implementation("io.socket:socket.io-client:2.1.0")
3930
}
4031

4132
task sourcesJar(type: Jar, dependsOn: classes) {

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ yarn_mappings=1.16.1+build.21
88
loader_version=0.12.12
99

1010
# Mod Properties
11-
mod_version=1.5
11+
mod_version=1.5.1
1212
maven_group=me.quesia
1313
archives_base_name=practiceseedmod

src/main/java/me/quesia/practiceseedmod/mixin/gui/DebugHudMixin.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@ private void addDebugText(CallbackInfoReturnable<List<String>> cir) {
1818
list.add("");
1919
if (PracticeSeedMod.IS_RACE) {
2020
list.add("Race hosted by " + PracticeSeedMod.RACE_HOST);
21-
list.add("Racing on seed '" + PracticeSeedMod.CURRENT_SEED + "'");
2221
} else {
23-
list.add("Practicing on seed '" + PracticeSeedMod.CURRENT_SEED + "'");
22+
list.add("Practicing on seed '" + PracticeSeedMod.CURRENT_SEED.seed + "'");
2423
}
2524
cir.setReturnValue(list);
2625
}

src/main/java/me/quesia/practiceseedmod/mixin/mechanics/blocks/GravelBlockMixin.java

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,17 @@ public GravelBlockMixin(Settings settings) {
2121
@Override
2222
public List<ItemStack> getDroppedStacks(BlockState state, LootContext.Builder builder) {
2323
List<ItemStack> original = super.getDroppedStacks(state, builder);
24-
int amount = 0;
25-
if (original.get(0).getItem().equals(Items.FLINT)) {
26-
amount = original.get(0).getCount();
27-
if (amount != 0) { amount--; }
28-
}
29-
if (PracticeSeedMod.GRAVEL_DROP_RANDOM.nextInt(2) == 0) { amount++; }
30-
if (amount > 0) {
31-
return List.of(new ItemStack(Items.FLINT, amount));
32-
}
24+
try {
25+
int amount = 0;
26+
if (original.get(0).getItem().equals(Items.FLINT)) {
27+
amount = original.get(0).getCount();
28+
if (amount != 0) { amount--; }
29+
}
30+
if (PracticeSeedMod.GRAVEL_DROP_RANDOM.nextInt(2) == 0) { amount++; }
31+
if (amount > 0) {
32+
return List.of(new ItemStack(Items.FLINT, amount));
33+
}
34+
} catch (IndexOutOfBoundsException ignored) {}
3335
return original;
3436
}
3537
}

0 commit comments

Comments
 (0)