Skip to content

Commit b23c234

Browse files
committed
Bumped to Origins 1.4.1.0
1 parent 91ec322 commit b23c234

File tree

6 files changed

+21
-28
lines changed

6 files changed

+21
-28
lines changed

Diff for: gradle.properties

+4-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ org.gradle.daemon=false
55

66
# Base properties
77
minecraft_version=1.18.2
8-
forge_version=1.18.2-40.0.46
8+
forge_version=1.18.2-40.0.52
99
mappings_channel=parchment
1010
mappings_version=2022.03.13-1.18.2
1111

@@ -18,5 +18,7 @@ org.gradle.daemon=false
1818

1919
# Dependencies
2020
caelus_version=1.18.1-3.0.0.2
21-
origins_version=3747134
21+
origins_version=3757460
22+
23+
# Compat Dependencies
2224
apotheosis_version=3717791

Diff for: src/main/java/limonblaze/originsclasses/mixin/FoodDataMixin.java

+5-4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import limonblaze.originsclasses.util.NbtType;
44
import limonblaze.originsclasses.util.NbtUtils;
55
import net.minecraft.util.Mth;
6+
import net.minecraft.world.entity.LivingEntity;
67
import net.minecraft.world.food.FoodData;
78
import net.minecraft.world.food.FoodProperties;
89
import net.minecraft.world.item.Item;
@@ -18,11 +19,11 @@ public abstract class FoodDataMixin {
1819

1920
@Shadow public abstract void eat(int food, float saturationModifier);
2021

21-
@Inject(method = "eat(Lnet/minecraft/world/item/Item;Lnet/minecraft/world/item/ItemStack;)V", at = @At("TAIL"))
22-
private void originsClasses$handleFoodBonus(Item item, ItemStack stack, CallbackInfo ci) {
23-
FoodProperties food = item.getFoodProperties();
22+
@Inject(method = "eat(Lnet/minecraft/world/item/Item;Lnet/minecraft/world/item/ItemStack;Lnet/minecraft/world/entity/LivingEntity;)V", at = @At("TAIL"), remap = false)
23+
private void originsClasses$handleFoodBonus(Item pItem, ItemStack pStack, LivingEntity entity, CallbackInfo ci) {
24+
FoodProperties food = pStack.getFoodProperties(entity);
2425
if(food != null) {
25-
NbtUtils.getOriginsClassesData(stack, NbtUtils.FOOD_BONUS, NbtType.FLOAT).ifPresent(f ->
26+
NbtUtils.getOriginsClassesData(pStack, NbtUtils.FOOD_BONUS, NbtType.FLOAT).ifPresent(f ->
2627
this.eat(Mth.floor(food.getNutrition() * f), food.getSaturationModifier()));
2728
}
2829
}

Diff for: src/main/resources/META-INF/mods.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ description = "An add-on for the Origins mod which adds classes to the game."
1616
[[dependencies.origins-classes]]
1717
modId = "forge"
1818
mandatory = true
19-
versionRange = "[40,)"
19+
versionRange = "[40.0.47,)"
2020
ordering = "NONE"
2121
side = "BOTH"
2222

@@ -30,6 +30,6 @@ side = "BOTH"
3030
[[dependencies.origins-classes]]
3131
modId = "origins"
3232
mandatory = true
33-
versionRange = "[1.18.2-1.3.1.14,)"
33+
versionRange = "[1.18.2-1.4.1,)"
3434
ordering = "NONE"
3535
side = "BOTH"

Diff for: src/main/resources/data/origins_classes/powers/better_crafted_food.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
{
22
"type": "apoli:modify_crafting",
33
"item_condition": {
4-
"type": "apoli:food",
5-
"inverted": true
4+
"type": "apoli:food"
65
},
76
"item_action": {
87
"type": "apoli:modify",

Diff for: src/main/resources/data/origins_classes/powers/more_planks_from_logs.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
"type": "origins:ingredient",
55
"ingredient": {
66
"tag": "minecraft:planks"
7-
},
8-
"inverted": true
7+
}
98
},
109
"item_action": {
1110
"type": "apoli:modify",

Diff for: src/main/resources/data/origins_classes/powers/quality_equipment.json

+8-16
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
"melee": {
44
"type": "apoli:modify_crafting",
55
"item_condition": {
6-
"type": "origins_classes:melee",
7-
"inverted": true
6+
"type": "origins_classes:melee"
87
},
98
"item_action": {
109
"type": "apoli:modify",
@@ -14,8 +13,7 @@
1413
"range": {
1514
"type": "apoli:modify_crafting",
1615
"item_condition": {
17-
"type": "origins_classes:range",
18-
"inverted": true
16+
"type": "origins_classes:range"
1917
},
2018
"item_action": {
2119
"type": "apoli:modify",
@@ -25,8 +23,7 @@
2523
"tool": {
2624
"type": "apoli:modify_crafting",
2725
"item_condition": {
28-
"type": "origins_classes:tool",
29-
"inverted": true
26+
"type": "origins_classes:tool"
3027
},
3128
"item_action": {
3229
"type": "apoli:modify",
@@ -36,8 +33,7 @@
3633
"shield": {
3734
"type": "apoli:modify_crafting",
3835
"item_condition": {
39-
"type": "origins_classes:shield",
40-
"inverted": true
36+
"type": "origins_classes:shield"
4137
},
4238
"item_action": {
4339
"type": "apoli:modify",
@@ -47,8 +43,7 @@
4743
"helmet": {
4844
"type": "apoli:modify_crafting",
4945
"item_condition": {
50-
"type": "origins_classes:helmet",
51-
"inverted": true
46+
"type": "origins_classes:helmet"
5247
},
5348
"item_action": {
5449
"type": "apoli:modify",
@@ -58,8 +53,7 @@
5853
"chestplate": {
5954
"type": "apoli:modify_crafting",
6055
"item_condition": {
61-
"type": "origins_classes:chestplate",
62-
"inverted": true
56+
"type": "origins_classes:chestplate"
6357
},
6458
"item_action": {
6559
"type": "apoli:modify",
@@ -69,8 +63,7 @@
6963
"leggings": {
7064
"type": "apoli:modify_crafting",
7165
"item_condition": {
72-
"type": "origins_classes:leggings",
73-
"inverted": true
66+
"type": "origins_classes:leggings"
7467
},
7568
"item_action": {
7669
"type": "apoli:modify",
@@ -80,8 +73,7 @@
8073
"shoes": {
8174
"type": "apoli:modify_crafting",
8275
"item_condition": {
83-
"type": "origins_classes:shoes",
84-
"inverted": true
76+
"type": "origins_classes:shoes"
8577
},
8678
"item_action": {
8779
"type": "apoli:modify",

0 commit comments

Comments
 (0)