Skip to content

Commit f32e269

Browse files
committed
let the json galore begin
1 parent 611d6ac commit f32e269

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/java/de/dafuqs/spectrum/items/bundles/PlaceableBundleBlockItem.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public PlaceableBundleBlockItem(int maxStacks, Block block, Settings settings) {
2323

2424
public PlaceableBundleBlockItem(Fraction maxOccupancy, int maxStacks, Settings bundleSettings, Block block, Settings settings) {
2525
super(block, settings);
26-
bundle = null; // new ExtendedBundleItem(maxOccupancy, maxStacks, bundleSettings); // TODO: instanciating a new item here makes the game crash because this ExtendedBundleItem is not registered
26+
bundle = null; // new ExtendedBundleItem(maxOccupancy, maxStacks, bundleSettings); // TODO: instanciating a new item here makes the game crash because this ExtendedBundleItem is not registered
2727
}
2828

2929
@Override

src/main/java/de/dafuqs/spectrum/mixin/ServerPlayerGameModeFabricMixin.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ public class ServerPlayerGameModeFabricMixin {
1414
@Shadow
1515
@Final
1616
protected ServerPlayerEntity player;
17-
18-
@Inject(method = "tryBreakBlock", at = @At(value = "INVOKE", target = "Lnet/minecraft/block/Block;onBreak(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/player/PlayerEntity;)V"))
17+
18+
@Inject(method = "tryBreakBlock", at = @At(value = "INVOKE", target = "Lnet/minecraft/block/Block;onBreak(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/block/BlockState;"))
1919
private void spectrum$tryBreakBlock(BlockPos pos, CallbackInfoReturnable<Boolean> cir) {
2020
ServerPlayerEntity player = this.player;
2121
ItemStack stack = player.getMainHandStack();

0 commit comments

Comments
 (0)