Skip to content

Commit

Permalink
3.4.1 Update
Browse files Browse the repository at this point in the history
  • Loading branch information
JackyyTV committed Sep 1, 2023
1 parent 9f3a751 commit fa191b0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 11 deletions.
7 changes: 0 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,6 @@ repositories {
name = 'ModMaven'
url = 'https://modmaven.dev'
}
maven {
name = 'JEI Maven'
url = 'https://dvs1.progwml6.com/files/maven'
content {
includeGroup 'mezz.jei'
}
}
maven {
name = 'Curse Maven'
url = 'https://www.cursemaven.com'
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ mod_name=Exchangers
mc_version=1.19.2
mc_version_range=[1.19.2]

forge_version=43.2.19
forge_version=43.2.21
forge_version_range=[43,)
loader_version_range=[43,)

mappings_channel=official
mappings_version=1.19.2

mod_version=3.4
mod_version=3.4.1
mod_license=Jacky's Minecraft Mods License
mod_authors=Jackyy, TurkeyDev
mod_description=Block Exchangers.
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ public void onKeyInput(InputEvent.Key event) {
if (player != null) {
ItemStack heldItem = player.getMainHandItem();
if (!heldItem.isEmpty() && heldItem.getItem() instanceof ItemExchangerBase) {
ExchangerHandler.setDefaultTagCompound(heldItem);
if (Keys.OPEN_GUI_KEY.get().isDown()) {
mc.setScreen(new ExchangersGuiScreen());
} else if (Keys.RANGE_SWITCH_KEY.get().isDown()) {
Expand Down
6 changes: 4 additions & 2 deletions src/main/java/jackyy/exchangers/item/ItemExchangerBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,12 @@ public InteractionResult useOn(UseOnContext context) {
BlockPos pos = context.getClickedPos();
Direction side = context.getClickedFace();
if (!world.isClientSide() && player != null) {
ItemStack mainHandStack = player.getMainHandItem();
ExchangerHandler.setDefaultTagCompound(mainHandStack);
if (player.isShiftKeyDown()) {
ExchangerHandler.selectBlock(player.getMainHandItem(), player, world, pos);
ExchangerHandler.selectBlock(mainHandStack, player, world, pos);
} else {
ExchangerHandler.placeBlock(player.getMainHandItem(), player, world, pos, side, context);
ExchangerHandler.placeBlock(mainHandStack, player, world, pos, side, context);
}
}
return InteractionResult.SUCCESS;
Expand Down

0 comments on commit fa191b0

Please sign in to comment.