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 auto move cancel action when not triggered #2670

Merged
merged 1 commit into from
Dec 27, 2016

Conversation

oniatus
Copy link
Contributor

@oniatus oniatus commented Dec 16, 2016

Contains

Short follow up to #2557.
The current implementation will cancel the periodic action each time any periodic action is triggered.
The PeriodicActionComponent is not null safe on removal (note the null -> long autoboxing), which causes periodic NPEs.

How to test

Enable any module that triggers periodic action, like the portals module (place one portal block in the world, then watch the log).

-also make PeriodicActionComponent null safe
@oniatus oniatus self-assigned this Dec 16, 2016
@GooeyHub
Copy link
Member

Hooray Jenkins reported success with all tests good!

@rzats rzats added Topic: Architecture Requests, Issues and Changes related to software architecture, programming patterns, etc. and removed in progress labels Dec 20, 2016
@Cervator Cervator merged commit a60d130 into MovingBlocks:develop Dec 27, 2016
Cervator added a commit that referenced this pull request Dec 27, 2016
@Cervator Cervator added this to the Alpha 7 milestone Dec 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Topic: Architecture Requests, Issues and Changes related to software architecture, programming patterns, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants