fix: Accidental hard dependency on sodium in mixins
This commit is contained in:
@@ -316,6 +316,15 @@ object CustomBlockTextures {
|
||||
)
|
||||
}
|
||||
|
||||
/**
|
||||
* Used by [moe.nea.firmament.init.SectionBuilderRiser]
|
||||
*/
|
||||
|
||||
@JvmStatic
|
||||
fun patchIndigo(original: BlockStateModel, pos: BlockPos?, state: BlockState): BlockStateModel {
|
||||
return getReplacementModel(state, pos) ?: original
|
||||
}
|
||||
|
||||
@JvmStatic
|
||||
fun collectExtraModels(modelsCollector: ReferencedModelsCollector) {
|
||||
preparationFuture.join().collectAllReplacements()
|
||||
|
||||
@@ -26,7 +26,6 @@ public class PatchLegacyTexturePathsIntoArmorLayers {
|
||||
// legacy format: "assets/{identifier.namespace}/textures/models/armor/{identifier.path}_layer_{isLegs ? 2 : 1}{suffix}.png"
|
||||
// suffix is sadly not available to us here. this means leather armor will look a bit shite
|
||||
var legacyIdentifier = this.textureId.withPath((textureName) -> {
|
||||
String var10000 = layerType.asString();
|
||||
return "textures/models/armor/" + textureName + "_layer_" +
|
||||
(layerType == EquipmentModel.LayerType.HUMANOID_LEGGINGS ? 2 : 1)
|
||||
+ ".png";
|
||||
|
||||
@@ -26,7 +26,7 @@ public class ReplaceItemModelPatch implements IntrospectableItemModelManager {
|
||||
private Function<Identifier, ItemModel> modelGetter;
|
||||
|
||||
@WrapOperation(
|
||||
method = "update(Lnet/minecraft/client/render/item/ItemRenderState;Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ModelTransformationMode;Lnet/minecraft/world/World;Lnet/minecraft/entity/LivingEntity;I)V",
|
||||
method = "update",
|
||||
at = @At(value = "INVOKE", target = "Lnet/minecraft/item/ItemStack;get(Lnet/minecraft/component/ComponentType;)Ljava/lang/Object;"))
|
||||
private Object replaceItemModelByIdentifier(ItemStack instance, ComponentType componentType, Operation<Object> original) {
|
||||
var override = CustomItemModelEvent.getModelIdentifier(instance, this);
|
||||
|
||||
Reference in New Issue
Block a user