Compare commits

...
1 Commits
3 changed files with 7 additions and 7 deletions

No files matched your search

+2 -2
View File
@@ -1,8 +1,8 @@
// Add your dependencies here // Add your dependencies here
dependencies { dependencies {
api("com.github.GTNewHorizons:GTNHLib:0.6.38:dev") api("com.github.GTNewHorizons:GTNHLib:0.6.39:dev")
implementation("com.github.GTNewHorizons:NotEnoughItems:2.7.69-GTNH:dev") implementation("com.github.GTNewHorizons:NotEnoughItems:2.7.84-GTNH:dev")
testImplementation(platform('org.junit:junit-bom:5.9.2')) testImplementation(platform('org.junit:junit-bom:5.9.2'))
testImplementation('org.junit.jupiter:junit-jupiter') testImplementation('org.junit.jupiter:junit-jupiter')
+1 -1
View File
@@ -17,7 +17,7 @@ pluginManagement {
} }
plugins { plugins {
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.41' id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.42'
} }
@@ -28,11 +28,11 @@ public class ItemConstructableTrigger extends Item {
@Override @Override
public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) { public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
if (!world.isRemote && getMovingObjectPositionFromPlayer(world, player, true) == null) { if (getMovingObjectPositionFromPlayer(world, player, true) == null) {
if (player.isSneaking()) { if (!world.isRemote) {
StructureLib.instance().proxy().displayConfigGUI("registries");
} else {
player.openGui(StructureLib.instance(), 0, world, player.inventory.currentItem, 0, 0); player.openGui(StructureLib.instance(), 0, world, player.inventory.currentItem, 0, 0);
} else if (player.isSneaking()) {
StructureLib.instance().proxy().displayConfigGUI("registries");
} }
} }
return super.onItemRightClick(stack, world, player); return super.onItemRightClick(stack, world, player);