Skip to content

Commit 23a4b5b

Browse files
committed
1.1.0
Skipping 1.0.4 because this deserves a minor version update
1 parent 1e107cd commit 23a4b5b

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

changelog.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1-
Crossbow Scoping 1.0.4+1.21.1
2-
- Removed direct apoli compat
3-
- Scoped Crossbow firing payload now tracks what hand the crossbow is in
1+
Crossbow Scoping 1.1.0+1.21.1
2+
- Removed direct apoli compat (works without it now)
3+
- Scoped Crossbow firing payload now tracks what hand the crossbow is in
4+
- Fixed scope rendering in third person
5+
- Fixed offhand hotbar rendering when using crossbow
6+
- Internals rework
7+
- Minecraft now thinks the slot's ItemStack is a spyglass and not a crossbow

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ yarn_mappings=1.21.1+build.3
99
loader_version=0.16.10
1010

1111
# Mod Properties
12-
mod_version=1.0.3+1.21.1
12+
mod_version=1.1.0+1.21.1
1313
maven_group=survivalblock.crossbow_scoping
1414
archives_base_name=crossbow_scoping
1515

src/main/java/survivalblock/crossbow_scoping/mixin/crossbow/PlayerEntityMixin.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public abstract class PlayerEntityMixin extends LivingEntityMixin implements Cro
5151
return false;
5252
}
5353
if (!this.crossbow_scoping$initialScope.isEmpty()) {
54-
boolean initial = ItemStack.areItemsAndComponentsEqual(this.crossbow_scoping$initialScope, scope);
54+
boolean initial = ItemStack.areEqual(this.crossbow_scoping$initialScope, scope);
5555
if (initial) {
5656
return true;
5757
}
@@ -60,7 +60,7 @@ public abstract class PlayerEntityMixin extends LivingEntityMixin implements Cro
6060
if (active == null || active.isEmpty()) {
6161
return false;
6262
}
63-
return ItemStack.areItemsAndComponentsEqual(active, scope);
63+
return ItemStack.areEqual(active, scope);
6464
}
6565

6666
/*

src/main/java/survivalblock/crossbow_scoping/mixin/crossbow/client/PlayerHeldItemFeatureRendererMixin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ private ItemStack renderCrossbowToo(ItemStack scope, @Local(argsOnly = true)Livi
4747
player.crossbow_scoping$setAttacking(true);
4848
ItemStack crossbow = player.getStackInHand(player.getActiveHand());
4949
player.crossbow_scoping$setAttacking(false);
50-
if (ItemStack.areItemsAndComponentsEqual(scope, crossbow.getOrDefault(CrossbowScopingDataComponentTypes.CROSSBOW_SCOPE, ItemStack.EMPTY))) {
50+
if (ItemStack.areEqual(scope, crossbow.getOrDefault(CrossbowScopingDataComponentTypes.CROSSBOW_SCOPE, ItemStack.EMPTY))) {
5151
localBooleanRef.set(true);
5252
return crossbow;
5353
}

0 commit comments

Comments
 (0)