Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GT6 cable quality of life improvements #64

Merged
merged 1 commit into from
Dec 24, 2017
Merged

GT6 cable quality of life improvements #64

merged 1 commit into from
Dec 24, 2017

Conversation

mitchej123
Copy link
Contributor

Allow use of wire cutter/soldering item on the tile entity, as well as the wire, for a connect/disconnect. Useful for when the cable you want to power the machine is hidden behind the machine and not easily accessible.

@mitchej123
Copy link
Contributor Author

@Dream-Master - Fixing an annoyance I've had with the new style cables (which in general I'm a fan of)

@Dream-Master
Copy link
Member

Sounds cool i will add it @mitchej123 thanks

@Dream-Master Dream-Master merged commit a8dcbf0 into GTNewHorizons:experimental Dec 24, 2017
@Technus
Copy link
Contributor

Technus commented Dec 25, 2017

Just for a heads up might fuck up current behaviour of soldering iron on machine sides...
which changes the strenght of redstone signal emmited

@Technus
Copy link
Contributor

Technus commented Dec 25, 2017

By that i mean it overlaps with it, even if there is a check what should happen an overlapping behaviour is bad imo.

Just a matter of preference.

mStrongRedstone ^= (1 << tSide);
GT_Utility.sendChatToPlayer(aPlayer, trans("091","Redstone Output at Side ") + tSide + trans("092"," set to: ") + ((mStrongRedstone & (1 << tSide)) != 0 ? trans("093","Strong") : trans("094","Weak")));
GT_Utility.sendSoundToPlayers(worldObj, GregTech_API.sSoundList.get(103), 3.0F, -1, xCoord, yCoord, zCoord);
} else if (mMetaTileEntity.onSolderingToolRightClick(aSide, tSide, aPlayer, aX, aY, aZ)) {
Copy link
Contributor

@Technus Technus Dec 25, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just generally does shit and then discharges it? I would just use the discharged tool all the way,

@Technus
Copy link
Contributor

Technus commented Dec 25, 2017

summin up

only wirecutter for wires/cables

soldeirng iron for redstone signals (revert the code that changed it and make it only do that if someone implemented connection tool on soldering iron)

only wrench for pipes

}

@Override
public boolean onSolderingToolRightClick(byte aSide, byte aWrenchingSide, EntityPlayer aPlayer, float aX, float aY, float aZ) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets just reserve that for only redstone level changes

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

mStrongRedstone ^= (1 << tSide);
GT_Utility.sendChatToPlayer(aPlayer, trans("091","Redstone Output at Side ") + tSide + trans("092"," set to: ") + ((mStrongRedstone & (1 << tSide)) != 0 ? trans("093","Strong") : trans("094","Weak")));
GT_Utility.sendSoundToPlayers(worldObj, GregTech_API.sSoundList.get(103), 3.0F, -1, xCoord, yCoord, zCoord);
} else if (mMetaTileEntity.onSolderingToolRightClick(aSide, tSide, aPlayer, aX, aY, aZ)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is like the opposite of how this should work?

If tool was used then do it

instead of if did it use the tool

@Technus
Copy link
Contributor

Technus commented Dec 25, 2017

Other idea would be to implement other tool for "electical" wire soldering/cutting.

like electric wire cramping/cutting tool

@Technus
Copy link
Contributor

Technus commented Dec 25, 2017

Merge followed by
#65
c89acf5

eigenraven pushed a commit that referenced this pull request May 25, 2024
eigenraven pushed a commit that referenced this pull request May 25, 2024
* Fix exploit with disassembler

* spotlessApply
eigenraven pushed a commit that referenced this pull request May 25, 2024
* fix

* spotlessApply (#64)

Co-authored-by: GitHub GTNH Actions <>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
eigenraven pushed a commit that referenced this pull request May 25, 2024
…s-fixes

Spotless apply for branch delete-unused-stuff for #64
eigenraven pushed a commit that referenced this pull request May 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants