File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
engine/modules/toggle/src/main/java/com/codingame/gameengine/module/toggle Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -26,14 +26,14 @@ public class ToggleModule implements Module {
26
26
27
27
class Toggle {
28
28
public String name ;
29
- public Boolean state = true ;
29
+ public boolean state = true ;
30
30
31
- public Toggle (String name , Boolean state ) {
31
+ public Toggle (String name , boolean state ) {
32
32
this .name = name ;
33
33
this .state = state ;
34
34
}
35
35
36
- public Boolean equals (Toggle other ) {
36
+ public boolean equals (Toggle other ) {
37
37
return other != null && this .state == other .state && stringEquals (this .name , other .name );
38
38
}
39
39
@@ -82,7 +82,7 @@ private void sendFrameData() {
82
82
* @param toggle the name of the toggle you want to use
83
83
* @param state the state of the toggle where the entity will be displayed at
84
84
*/
85
- public void displayOnToggleState (Entity <?> entity , String toggle , Boolean state ) {
85
+ public void displayOnToggleState (Entity <?> entity , String toggle , boolean state ) {
86
86
int id = entity .getId ();
87
87
Toggle associatedToggle = new Toggle (toggle , state );
88
88
if (!associatedToggle .equals (registered .get (id ))) {
You can’t perform that action at this time.
0 commit comments