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

Microblocks are not passed block events. #5

Open
Kubuxu opened this issue Aug 3, 2015 · 5 comments
Open

Microblocks are not passed block events. #5

Kubuxu opened this issue Aug 3, 2015 · 5 comments

Comments

@Kubuxu
Copy link
Contributor

Kubuxu commented Aug 3, 2015

It makes impossible to listen for ie. Block.PlaceEvent.

@calclavia
Copy link
Member

@Kubuxu Try using Microblock.onPlace?

@Kubuxu
Copy link
Contributor Author

Kubuxu commented Aug 5, 2015

I bind this event in component to perform post place initialization.
Any idea how to work around this.
Also onPlace is too early. I need event after part has its place and so on.
IDK how to solve this.

@calclavia
Copy link
Member

@Kubuxu
Copy link
Contributor Author

Kubuxu commented Aug 6, 2015

It doesn't works as when this happens the block in question is not yet saved in the world's chunk while loading a Save. During this event I scan block around this block and which causes loading of block around it which cases scanning and so on.

This is why I need `Block.PlaceEvent or something like validate/invalidate.

@Kubuxu
Copy link
Contributor Author

Kubuxu commented Aug 7, 2015

Now I am missing Block.NeighbourChangeEvent.

@calclavia would my code here: 0260c61 work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants