File tree Expand file tree Collapse file tree 4 files changed +14
-22
lines changed
src/main/java/me/quesia/practiceseedmod/mixin Expand file tree Collapse file tree 4 files changed +14
-22
lines changed Original file line number Diff line number Diff 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-
3122apply plugin : ' com.github.johnrengelman.shadow'
3223
3324dependencies {
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
4132task sourcesJar (type : Jar , dependsOn : classes) {
Original file line number Diff line number Diff line change @@ -8,6 +8,6 @@ yarn_mappings=1.16.1+build.21
88loader_version =0.12.12
99
1010# Mod Properties
11- mod_version =1.5
11+ mod_version =1.5.1
1212maven_group =me.quesia
1313archives_base_name =practiceseedmod
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments