-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
33 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1 @@ | ||
- fixed game crash `java.lang.NullPointerException: Registry Object not present` (reported by @reboundrefice) | ||
- fixed bug with trying to load folders instead of mods (reported by @SettingDust) | ||
- fixed bug with weather changes not working properly | ||
- fixed compatibility issue with Sodium (reported by @LonelyFear) | ||
- fixed compatibility issue with Epic Fight (reported by @Orphion_) | ||
- fixed compatibility issue with Marium's Soulslike Weaponry (reported by @mariumbacchus) | ||
- fixed compatibility bug with items not dropping at all when Porting Lib is used (reported by @Cornell) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
fabric/src/main/java/com/majruszlibrary/mixin/fabric/MixinLootTable2.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.majruszlibrary.mixin.fabric; | ||
|
||
import com.majruszlibrary.mixininterfaces.fabric.IMixinLootTable; | ||
import net.minecraft.world.item.ItemStack; | ||
import net.minecraft.world.level.storage.loot.LootContext; | ||
import net.minecraft.world.level.storage.loot.LootTable; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
import org.spongepowered.asm.mixin.injection.Inject; | ||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; | ||
|
||
import java.util.function.Consumer; | ||
|
||
@Mixin( value = LootTable.class, priority = 1010 ) | ||
public abstract class MixinLootTable2 implements IMixinLootTable { | ||
@Inject( | ||
at = @At( "RETURN" ), | ||
method = "getRandomItemsRaw (Lnet/minecraft/world/level/storage/loot/LootContext;Ljava/util/function/Consumer;)V" | ||
) | ||
private void getRandomItemsRaw( LootContext context, Consumer< ItemStack > consumer, CallbackInfo callback ) { | ||
this.majruszlibrary$modify( context ); // compatibility with porting library | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
fabric/src/main/java/com/majruszlibrary/mixininterfaces/fabric/IMixinLootTable.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
package com.majruszlibrary.mixininterfaces.fabric; | ||
|
||
import net.minecraft.resources.ResourceLocation; | ||
import net.minecraft.world.level.storage.loot.LootContext; | ||
|
||
public interface IMixinLootTable { | ||
void majruszlibrary$set( ResourceLocation id ); | ||
|
||
void majruszlibrary$modify( LootContext context ); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters