Skip to content

Commit 224db13

Browse files
committed
- sb please figure out why compiled versions dont work thx
1 parent dc6eb25 commit 224db13

File tree

11 files changed

+120
-6
lines changed

11 files changed

+120
-6
lines changed

common/src/main/java/smartin/miapi/modules/properties/compat/BetterCombatHelper.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ public static net.bettercombat.api.WeaponAttributes container(JsonElement data)
4343
public static net.bettercombat.api.WeaponAttributes getAttributes(ItemStack stack) {
4444
if (stack.getItem() instanceof ModularItem) {
4545
net.bettercombat.api.WeaponAttributes attributes = (net.bettercombat.api.WeaponAttributes) ModularItemCache.get(stack, BetterCombatProperty.KEY);
46-
attributes = new net.bettercombat.api.WeaponAttributes(getAttackRange(stack), attributes.pose(), attributes.offHandPose(), attributes.isTwoHanded(), attributes.category(), attributes.attacks());
46+
if(attributes!=null){
47+
attributes = new net.bettercombat.api.WeaponAttributes(getAttackRange(stack), attributes.pose(), attributes.offHandPose(), attributes.isTwoHanded(), attributes.category(), attributes.attacks());
48+
}
4749
return attributes;
4850
} else {
4951
return null;

common/src/main/java/smartin/miapi/modules/properties/compat/BetterCombatProperty.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public BetterCombatProperty() {
1919
@Override
2020
public boolean load(String moduleKey, JsonElement data) throws Exception {
2121
if (Platform.isModLoaded("bettercombat")) {
22-
BetterCombatHelper.container(data);
22+
//BetterCombatHelper.container(data);
2323
return true;
2424
}
2525
return false;
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"blade_dagger": {
3+
"condition": {
4+
"type": "otherModule",
5+
"condition": {
6+
"type": "module",
7+
"module": "handle_polearm"
8+
}
9+
},
10+
"properties": {
11+
"better_combat_config": {
12+
"parent": "bettercombat:spear"
13+
}
14+
}
15+
}
16+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"blade_greatsword": {
3+
"condition": {
4+
"type": "otherModule",
5+
"condition": {
6+
"type": "module",
7+
"module": "handle_polearm"
8+
}
9+
},
10+
"properties": {
11+
"better_combat_config": {
12+
"parent": "bettercombat:staff"
13+
}
14+
}
15+
}
16+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"blade_katana": {
3+
"condition": {
4+
"type": "otherModule",
5+
"condition": {
6+
"type": "module",
7+
"module": "handle_polearm"
8+
}
9+
},
10+
"properties": {
11+
"better_combat_config": {
12+
"parent": "bettercombat:halberd"
13+
}
14+
}
15+
}
16+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"blade_longsword": {
3+
"condition": {
4+
"type": "otherModule",
5+
"condition": {
6+
"type": "module",
7+
"module": "handle_short"
8+
}
9+
},
10+
"properties": {
11+
"better_combat_config": {
12+
"parent": "bettercombat:staff"
13+
}
14+
}
15+
}
16+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"blade_rapier": {
3+
"condition": {
4+
"type": "otherModule",
5+
"condition": {
6+
"type": "module",
7+
"module": "handle_polearm"
8+
}
9+
},
10+
"properties": {
11+
"better_combat_config": {
12+
"parent": "bettercombat:staff"
13+
}
14+
}
15+
}
16+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"blade_sword": {
3+
"condition": {
4+
"type": "otherModule",
5+
"condition": {
6+
"type": "module",
7+
"module": "handle_polearm"
8+
}
9+
},
10+
"properties": {
11+
"better_combat_config": {
12+
"parent": "bettercombat:spear"
13+
}
14+
}
15+
}
16+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"blade_throwing_knife": {
3+
"condition": {
4+
"type": "otherModule",
5+
"condition": {
6+
"type": "module",
7+
"module": "handle_polearm"
8+
}
9+
},
10+
"properties": {
11+
"better_combat_config": {
12+
"parent": "bettercombat:spear"
13+
}
14+
}
15+
}
16+
}

fabric/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ dependencies {
4545

4646
implementation(include('org.mariuszgromada.math:MathParser.org-mXparser:4.4.2'))
4747

48-
//modImplementation "curse.maven:cloth-348521:4554906"
49-
//modImplementation "curse.maven:bettercombat-639842:4597949"
50-
//modImplementation 'dev.kosmx.player-anim:player-animation-lib-fabric:1.0.2-rc1+1.20'
48+
modImplementation "curse.maven:cloth-348521:4554906"
49+
modImplementation "curse.maven:bettercombat-639842:4597949"
50+
modImplementation 'dev.kosmx.player-anim:player-animation-lib-fabric:1.0.2-rc1+1.20'
5151

5252
common(project(path: ":common", configuration: "namedElements")) { transitive false }
5353
shadowCommon(project(path: ":common", configuration: "transformProductionFabric")) { transitive false }

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=miapi
6-
mod_version=0.2-SNAPSHOT
6+
mod_version=0.3.1-SNAPSHOT
77
maven_group=smartin
88

99
architectury_version=9.0.8

0 commit comments

Comments
 (0)