mirror of
https://github.com/GTNewHorizons/StructureLib.git
synced 2026-11-19 03:39:15 +00:00
add channel desc and channel indicator item
Signed-off-by: Glease <[email protected]>
This commit is contained in:
15 files changed
+788
-140
No files matched your search
@@ -17,9 +17,6 @@ import org.lwjgl.input.Keyboard;
|
||||
import com.gtnewhorizon.structurelib.StructureLib;
|
||||
import com.gtnewhorizon.structurelib.alignment.constructable.ChannelDataAccessor;
|
||||
import com.gtnewhorizon.structurelib.alignment.constructable.ConstructableUtility;
|
||||
import com.gtnewhorizon.structurelib.gui.GuiScreenConfigureChannels;
|
||||
|
||||
import cpw.mods.fml.common.FMLCommonHandler;
|
||||
|
||||
public class ItemConstructableTrigger extends Item {
|
||||
|
||||
@@ -31,11 +28,11 @@ public class ItemConstructableTrigger extends Item {
|
||||
|
||||
@Override
|
||||
public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
|
||||
if (world.isRemote && getMovingObjectPositionFromPlayer(world, player, true) == null) {
|
||||
if (!world.isRemote && getMovingObjectPositionFromPlayer(world, player, true) == null) {
|
||||
if (player.isSneaking()) {
|
||||
StructureLib.instance().proxy().displayConfigGUI("registries");
|
||||
} else {
|
||||
FMLCommonHandler.instance().showGuiScreen(new GuiScreenConfigureChannels(stack));
|
||||
player.openGui(StructureLib.instance(), 0, world, player.inventory.currentItem, 0, 0);
|
||||
}
|
||||
}
|
||||
return super.onItemRightClick(stack, world, player);
|
||||
|
||||
Reference in new issue
Block a user