Skip to content

Commit

Permalink
Improve material element api (GregTechCEu#2561)
Browse files Browse the repository at this point in the history
  • Loading branch information
brachy84 authored Aug 2, 2024
1 parent 48d707a commit 8514191
Show file tree
Hide file tree
Showing 4 changed files with 267 additions and 137 deletions.
6 changes: 3 additions & 3 deletions src/main/java/gregtech/api/unification/Element.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ public class Element {
* @param name Name of the Element
* @param symbol Symbol of the Element
*/
public Element(long protons, long neutrons, long halfLifeSeconds, String decayTo, String name, String symbol,
boolean isIsotope) {
protected Element(long protons, long neutrons, long halfLifeSeconds, String decayTo, String name, String symbol,
boolean isIsotope) {
this.protons = protons;
this.neutrons = neutrons;
this.halfLifeSeconds = halfLifeSeconds;
Expand Down Expand Up @@ -73,6 +73,6 @@ public long getMass() {
@Override
@ZenMethod
public String toString() {
return super.toString();
return name;
}
}
Loading

0 comments on commit 8514191

Please sign in to comment.