mirror of
https://github.com/GTNewHorizons/StructureLib.git
synced 2026-11-18 19:29:19 +00:00
customizable registries (#25)
* add a bit javadoc Signed-off-by: Glease <[email protected]> * customizable registries Signed-off-by: Glease <[email protected]> * add gui for customizing registries * add a bit javadoc Signed-off-by: Glease <[email protected]> * spotless Signed-off-by: Glease <[email protected]> * remove debug statements Signed-off-by: Glease <[email protected]> * add notes on localization Signed-off-by: Glease <[email protected]> * update * fix * fix --------- Signed-off-by: Glease <[email protected]> Co-authored-by: Dream Master <[email protected]>
This commit is contained in:
1 parent
03e84e3d37
commit
3d150d95cb
17 files changed
+1387
-11
No files matched your search
@@ -28,8 +28,13 @@ public class ItemConstructableTrigger extends Item {
|
||||
|
||||
@Override
|
||||
public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
|
||||
if (world.isRemote && getMovingObjectPositionFromPlayer(world, player, true) == null)
|
||||
player.openGui(StructureLib.instance(), 0, world, player.inventory.currentItem, 0, 0);
|
||||
if (world.isRemote && getMovingObjectPositionFromPlayer(world, player, true) == null) {
|
||||
if (player.isSneaking()) {
|
||||
StructureLib.instance().proxy().displayConfigGUI("registries");
|
||||
} else {
|
||||
player.openGui(StructureLib.instance(), 0, world, player.inventory.currentItem, 0, 0);
|
||||
}
|
||||
}
|
||||
return super.onItemRightClick(stack, world, player);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user