version 1.19.4

This commit is contained in:
Jottyfan 2023-03-17 19:20:50 +01:00
parent 9b01b89884
commit 62da9e3afb
4 changed files with 27 additions and 25 deletions

View File

@ -4,9 +4,9 @@
# Fabric Properties # Fabric Properties
# check these on https://fabricmc.net/versions.html # check these on https://fabricmc.net/versions.html
minecraft_version=1.19.4-pre3 minecraft_version=1.19.4
yarn_mappings=1.19.4-pre3+build.4 yarn_mappings=1.19.4+build.1
loader_version=0.14.14 loader_version=0.14.17
# Mod Properties # Mod Properties
mod_version = 1.19.4.0 mod_version = 1.19.4.0
@ -14,7 +14,7 @@
archives_base_name = quickiefabric archives_base_name = quickiefabric
# Dependencies # Dependencies
fabric_version=0.75.2+1.19.4 fabric_version=0.76.0+1.19.4
# for ExtendedLeavesBlock # for ExtendedLeavesBlock
terraform_wood_api_version=5.0.0-beta.1 terraform_wood_api_version=5.0.0-beta.1

View File

@ -60,10 +60,10 @@ public class BackpackScreenHandler extends ScreenHandler {
} }
@Override @Override
public void close(PlayerEntity player) { public void onClosed(PlayerEntity player) {
this.backpackInventory.setHand(hand); this.backpackInventory.setHand(hand);
this.backpackInventory.onClose(player); this.backpackInventory.onClose(player);
super.close(player); super.onClosed(player);
} }
@Override @Override
@ -73,7 +73,8 @@ public class BackpackScreenHandler extends ScreenHandler {
if (slot != null && slot.hasStack()) { if (slot != null && slot.hasStack()) {
ItemStack itemStack2 = slot.getStack(); ItemStack itemStack2 = slot.getStack();
itemStack = itemStack2.copy(); itemStack = itemStack2.copy();
if (index < 54 ? !this.insertItem(itemStack2, 54, this.slots.size(), true) : !this.insertItem(itemStack2, 0, 54, false)) { if (index < 54 ? !this.insertItem(itemStack2, 54, this.slots.size(), true)
: !this.insertItem(itemStack2, 0, 54, false)) {
return ItemStack.EMPTY; return ItemStack.EMPTY;
} }
if (itemStack2.isEmpty()) { if (itemStack2.isEmpty()) {
@ -100,7 +101,8 @@ public class BackpackScreenHandler extends ScreenHandler {
} }
} else { } else {
if (playerEntity.world.isClient) { if (playerEntity.world.isClient) {
playerEntity.world.playSound(null, new BlockPos(playerEntity.getPos()), SoundEvents.ENTITY_VILLAGER_NO, SoundCategory.PLAYERS, 1f, 1f); playerEntity.world.playSound(null, BlockPos.ofFloored(playerEntity.getPos()), SoundEvents.ENTITY_VILLAGER_NO,
SoundCategory.PLAYERS, 1f, 1f);
} }
} }
} }

View File

@ -69,7 +69,7 @@ public class RegistryManager {
public static final ItemGroup QUICKIEFABRIC_GROUP = FabricItemGroup.builder(new Identifier(QUICKIEFABRIC, "all")) public static final ItemGroup QUICKIEFABRIC_GROUP = FabricItemGroup.builder(new Identifier(QUICKIEFABRIC, "all"))
.displayName(Text.literal(QUICKIEFABRIC)) .displayName(Text.literal(QUICKIEFABRIC))
.icon(() -> new ItemStack(QuickieItems.SPEEDPOWDER)) .icon(() -> new ItemStack(QuickieItems.SPEEDPOWDER))
.entries((enabledFeatures, stacks, operatorEnabled) -> { .entries((enabledFeatures, stacks) -> {
stacks.add(new ItemStack(QuickieItems.SALPETER)); stacks.add(new ItemStack(QuickieItems.SALPETER));
stacks.add(new ItemStack(QuickieItems.SULPHOR)); stacks.add(new ItemStack(QuickieItems.SULPHOR));
stacks.add(new ItemStack(QuickieItems.SPEEDPOWDER)); stacks.add(new ItemStack(QuickieItems.SPEEDPOWDER));

View File

@ -26,9 +26,9 @@
"quickiefabric.mixins.json" "quickiefabric.mixins.json"
], ],
"depends": { "depends": {
"fabricloader": ">=0.14.14", "fabricloader": ">=0.14.17",
"fabric": "*", "fabric": "*",
"minecraft": "23w06a", "minecraft": "1.19.4",
"java": ">=17" "java": ">=17"
}, },
"suggests": { "suggests": {