Skip to content

Commit d3127b0

Browse files
author
Smartin
committed
- changelog and fix enchanting bug
1 parent 46e997d commit d3127b0

File tree

4 files changed

+14
-10
lines changed

4 files changed

+14
-10
lines changed

CHANGELOG.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
## v1.1.2 (1.20.1)
2-
- added way better enchantment detection for other mods
3-
- removed dedicated compat for Apotheosis and Zenith as it is nolonger needed
4-
- added stupid fix to ensure dedicated forge servers function by manually forcing a reload after serverstart.
5-
this can be disabled if it causes issues.
1+
## v1.1.3 (1.20.1)
2+
- fixed issues were enchantments could not be applied to items
3+
- fixed compat issues with Entity Texture Features
4+
- added Banner cosmetic support
5+
- fixed Bug were Buster skin would not load
6+
- fixed some Types and wordings within Translations
7+
- expanded Lore Text to allow for Formting
8+
- normalised module expansion and skin and synergy format to support "replace","remove" and "merge"

common/src/main/java/smartin/miapi/client/modelrework/MiapiItemModel.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import smartin.miapi.item.modular.ModularItem;
1313
import smartin.miapi.modules.ItemModule;
1414
import smartin.miapi.modules.cache.ModularItemCache;
15+
import smartin.miapi.registries.RegistryInventory;
1516

1617
import java.util.ArrayList;
1718
import java.util.List;
@@ -23,7 +24,7 @@ public class MiapiItemModel implements MiapiModel {
2324
public static List<ModelTransformer> modelTransformers = new ArrayList<>();
2425
public final ItemStack stack;
2526
public final ModuleModel rootModel;
26-
private final static String CACHE_KEY = "miapi_model_rework";
27+
private static final String CACHE_KEY = "miapi_model_rework";
2728

2829
static {
2930
ModularItemCache.setSupplier(CACHE_KEY, (MiapiItemModel::new));
@@ -70,7 +71,7 @@ public void render(String modelType, ItemStack stack, MatrixStack matrices, Mode
7071
//needed because otherwise overwrites dont work
7172
entity = MinecraftClient.getInstance().player;
7273
}
73-
//RegistryInventory.Client.glintShader.getUniformOrDefault("ModelMat").set(new Matrix4f(matrices.peek().getPositionMatrix()));
74+
RegistryInventory.Client.glintShader.getUniformOrDefault("ModelMat").set(new Matrix4f(matrices.peek().getPositionMatrix()));
7475
rootModel.render(modelType, stack, matrices, mode, tickDelta, vertexConsumers, entity, light, overlay);
7576
matrices.pop();
7677
MinecraftClient.getInstance().world.getProfiler().pop();

common/src/main/java/smartin/miapi/modules/material/GeneratedMaterial.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public void testForSmithingMaterial(boolean isClient) {
129129
.findAny()
130130
.ifPresent(smithingTransformRecipe -> {
131131
ItemStack templateItem = Arrays.stream(((SmithingTransformRecipeAccessor) smithingTransformRecipe).getTemplate().getMatchingStacks()).filter(itemStack -> !itemStack.isEmpty()).findAny().orElse(ItemStack.EMPTY);
132-
if(templateItem.isEmpty()){
132+
if (templateItem.isEmpty()) {
133133
//make sure the recipe is valid by testing its template Item
134134
return;
135135
}
@@ -382,7 +382,7 @@ public MaterialPalette getPalette() {
382382

383383
@Override
384384
public double getValueOfItem(ItemStack item) {
385-
return 1;
385+
return item.getItem().equals(mainIngredient.getItem()) ? 1 : 0;
386386
}
387387

388388
@Override

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ org.gradle.jvmargs=-Xmx3G
33
minecraft_version=1.20.1
44

55
archives_base_name=Truly-Modular-miapi
6-
mod_version=1.1.2
6+
mod_version=1.1.3
77
maven_group=smartin
88
github=Truly-Modular.Modular-Item-API
99

0 commit comments

Comments
 (0)