Skip to content

Commit

Permalink
2.10.3 Update
Browse files Browse the repository at this point in the history
  • Loading branch information
JackyyTV committed Sep 1, 2023
1 parent 2ae94f5 commit 22af259
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 11 deletions.
6 changes: 1 addition & 5 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
buildscript {
repositories {
jcenter()
maven { url = "http://files.minecraftforge.net/maven" }
maven { url = "https://maven.minecraftforge.net" }
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
Expand Down Expand Up @@ -32,10 +32,6 @@ repositories {
name = "ModMaven"
url = "https://modmaven.dev"
}
maven {
name = "JEI Maven"
url = "https://dvs1.progwml6.com/files/maven"
}
maven {
name = "CoFH Maven"
url = "https://maven.covers1624.net"
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ org.gradle.jvmargs=-Xmx4G
mod_name=Exchangers
mc_version=1.12.2
forge_version=14.23.5.2847
mod_version=2.10.2
mod_version=2.10.3
mappings_channel=stable
mappings_version=39
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ public void onKeyInput(InputEvent.KeyInputEvent event) {
EntityPlayer player = FMLClientHandler.instance().getClient().player;
ItemStack heldItem = player.getHeldItemMainhand();
if (!heldItem.isEmpty() && heldItem.getItem() instanceof ItemExchangerBase) {
ExchangerHandler.setDefaultTagCompound(heldItem);
if (Keys.OPEN_GUI_KEY.isPressed()) {
mc.displayGuiScreen(new ExchangersGuiScreen());
} else if (Keys.RANGE_SWITCH_KEY.isPressed()) {
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 @@ -54,11 +54,13 @@ public boolean isPowered() {

@Override
public EnumActionResult onItemUse(EntityPlayer player, World world, BlockPos pos, EnumHand hand, EnumFacing side, float hitX, float hitY, float hitZ) {
ItemStack mainHandStack = player.getHeldItemMainhand();
ExchangerHandler.setDefaultTagCompound(mainHandStack);
if (!world.isRemote) {
if (player.isSneaking()) {
ExchangerHandler.selectBlock(player.getHeldItemMainhand(), player, world, pos);
ExchangerHandler.selectBlock(mainHandStack, player, world, pos);
} else {
ExchangerHandler.placeBlock(player.getHeldItemMainhand(), player, world, pos, side);
ExchangerHandler.placeBlock(mainHandStack, player, world, pos, side);
}
}
return EnumActionResult.SUCCESS;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/jackyy/exchangers/util/Reference.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public final class Reference {

public static final String MODID = "exchangers";
public static final String MODNAME = "Exchangers";
public static final String VERSION = "1.12.2-2.10.2";
public static final String VERSION = "1.12.2-2.10.3";
public static final String MCVERSION = "[1.12,1.13)";

public static final String EIO = "enderio";
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/mcmod.info
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"modid": "exchangers",
"name": "Exchangers",
"description": "Block Exchangers.",
"version": "1.12.2-2.10.2",
"version": "1.12.2-2.10.3",
"mcversion": "1.12.2",
"url": "https://github.com/JackyyTV/Exchangers",
"updateUrl": "",
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/pack.mcmeta
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"pack": {
"description": "Exchangers Resources",
"description": "Exchangers resources",
"pack_format": 3
}
}

0 comments on commit 22af259

Please sign in to comment.