Skip to content

Commit e8c14f7

Browse files
committed
fix(toggle): Boolean -> boolean
1 parent b9e0a62 commit e8c14f7

File tree

1 file changed

+4
-4
lines changed
  • engine/modules/toggle/src/main/java/com/codingame/gameengine/module/toggle

1 file changed

+4
-4
lines changed

engine/modules/toggle/src/main/java/com/codingame/gameengine/module/toggle/ToggleModule.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ public class ToggleModule implements Module {
2626

2727
class Toggle {
2828
public String name;
29-
public Boolean state = true;
29+
public boolean state = true;
3030

31-
public Toggle(String name, Boolean state) {
31+
public Toggle(String name, boolean state) {
3232
this.name = name;
3333
this.state = state;
3434
}
3535

36-
public Boolean equals(Toggle other) {
36+
public boolean equals(Toggle other) {
3737
return other != null && this.state == other.state && stringEquals(this.name, other.name);
3838
}
3939

@@ -82,7 +82,7 @@ private void sendFrameData() {
8282
* @param toggle the name of the toggle you want to use
8383
* @param state the state of the toggle where the entity will be displayed at
8484
*/
85-
public void displayOnToggleState(Entity<?> entity, String toggle, Boolean state) {
85+
public void displayOnToggleState(Entity<?> entity, String toggle, boolean state) {
8686
int id = entity.getId();
8787
Toggle associatedToggle = new Toggle(toggle, state);
8888
if (!associatedToggle.equals(registered.get(id))) {

0 commit comments

Comments
 (0)