Skip to content

Commit 0d4f5e9

Browse files
committed
Update to 1.21.10
1 parent 9b480e8 commit 0d4f5e9

3 files changed

Lines changed: 10 additions & 11 deletions

File tree

‎gradle.properties‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ org.gradle.jvmargs=-Xmx1G
33

44
# Fabric Properties
55
# check these on https://modmuss50.me/fabric.html
6-
minecraft_version=1.21.8
7-
yarn_mappings=1.21.8+build.1
8-
loader_version=0.17.2
6+
minecraft_version=1.21.10
7+
yarn_mappings=1.21.10+build.2
8+
loader_version=0.17.3
99

1010
# Mod Properties
1111
mod_version = 1.0
@@ -14,6 +14,6 @@ archives_base_name = pirkko
1414

1515
# Dependencies
1616
# check this on https://modmuss50.me/fabric.html
17-
fabric_version=0.134.0+1.21.8
18-
19-
polymer_version=0.13.9+1.21.8
17+
fabric_version=0.135.0+1.21.10
18+
# check this on https://maven.nucleoid.xyz/eu/pb4/polymer-core/
19+
polymer_version=0.14.2+1.21.9

‎src/main/java/io/github/fripe070/pirkko/block/PirkkoBlock.java‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,11 +188,12 @@ protected void neighborUpdate(BlockState state, World world, BlockPos pos, Block
188188

189189
@Override
190190
protected boolean hasComparatorOutput(BlockState state) {
191+
super.hasComparatorOutput(state);
191192
return true;
192193
}
193194

194195
@Override
195-
protected int getComparatorOutput(BlockState state, World world, BlockPos pos) {
196+
protected int getComparatorOutput(BlockState state, World world, BlockPos pos, Direction direction) {
196197
return Math.max(0, Math.min(15, getSquishTicks(state) * 15 / (SQUISH_TICKS - 1)));
197198
}
198199

@@ -295,8 +296,6 @@ protected void onTick() {
295296
} else {
296297
this.display.setTransformation(this.baseTransform);
297298
}
298-
299-
//this.debugText.setText(Text.of("Squish: %d/%d".formatted(squishTick, SQUISH_TICKS)));
300299
}
301300
}
302301
}

‎src/main/java/io/github/fripe070/pirkko/item/PirkkoItem.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public ActionResult useOnEntity(ItemStack pirkkoStack, PlayerEntity user, Living
8686
if (receiverStack.isEmpty()) continue;
8787
if (!receiverStack.isOf(pirkkoStack.getItem())) continue;
8888

89-
target.getWorld().playSound(target, user.getBlockPos(), SoundEvents.BLOCK_VAULT_CLOSE_SHUTTER, SoundCategory.PLAYERS, 0.4F, 1);
89+
user.getEntityWorld().playSound(user, user.getBlockPos(), SoundEvents.BLOCK_VAULT_CLOSE_SHUTTER, SoundCategory.PLAYERS, 0.4F, 1);
9090
return ActionResult.FAIL;
9191
}
9292

@@ -95,7 +95,7 @@ public ActionResult useOnEntity(ItemStack pirkkoStack, PlayerEntity user, Living
9595
if (!user.getAbilities().creativeMode) {
9696
pirkkoStack.decrement(1);
9797
}
98-
target.getWorld().playSound(target, user.getBlockPos(), kind.getSound(), SoundCategory.PLAYERS, 0.1F, 1);
98+
user.getEntityWorld().playSound(user, user.getBlockPos(), kind.getSound(), SoundCategory.PLAYERS, 0.1F, 1);
9999
}
100100

101101
return ActionResult.CONSUME;

0 commit comments

Comments
 (0)