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

Fix compile errors (incompatible types) #3416

Merged
merged 1 commit into from
Jun 14, 2021

Conversation

electron93
Copy link

Fixes the following compilation errors:

org/spongepowered/common/mixin/core/entity/EntityMixin.java:845: error: incompatible types: CAP#1 cannot be converted to int
                    .map(o -> (int) o)
                                    ^
  where CAP#1 is a fresh type-variable:
    CAP#1 extends Object from capture of ?
org/spongepowered/common/mixin/core/entity/EntityMixin.java:846: error: incompatible types: Object cannot be converted to int
                    .orElse(0);
                           ^
org/spongepowered/common/mixin/core/entity/EntityMixin.java:919: error: incompatible types: CAP#1 cannot be converted to int
                    .map(o -> (int) o)
                                    ^
  where CAP#1 is a fresh type-variable:
    CAP#1 extends Object from capture of ?
org/spongepowered/common/mixin/core/entity/EntityMixin.java:920: error: incompatible types: Object cannot be converted to int
                    .orElse(this.fire); // Otherwise, if it's failed, just "set it back"
                           ^

@ImMorpheus ImMorpheus added version: 1.12 (u) API: 7 (unsupported since May 21st 2021) status: needs review a code review is needed labels Jun 12, 2021
@dualspiral dualspiral merged commit 1e4fc4a into SpongePowered:stable-7 Jun 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs review a code review is needed version: 1.12 (u) API: 7 (unsupported since May 21st 2021)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants