Psi

Psi

45M Downloads

Block Place Crash

Walaryne opened this issue ยท 10 comments

commented

I created a simple spell that places blocks at a range, and while placing blocks upon reaching the end of a stack and placing the final block, Minecraft crashes immediately to desktop.

https://pastebin.com/yUgPwGc8

commented

Ow. Dude, please use pastebin. (AFAIK Github doesn't do spoilers.)

commented

A bit cleaner, hopefully.
I was half asleep when I put this here, so sorry!

commented

Thanks. My own experience: I am also getting crashes from placing blocks, most recently with a simple bridge spell. It happens maybe one time in 6 or 10 from placing 8 blocks along a modified look vector.

My crash report.

commented

Dykam: I'm not so sure about that, I'm fairly sure I've had crashes where I hadn't used up my stack of blocks.

commented

Adding one more crash report.

It seems to happen when placing a block clears the stack, and looking at the source, it seems to match. It makes any placeblock fairly unusable as you have to keep peeking in your inventory to make sure the stack never clears.

commented

Hmm. If I've got, say, stone bricks in my hotbar for the spell, can the spell take from (and maybe exhaust) stone bricks from my main inventory instead?

commented

@MentalMouse That's the behavior which caused a problem for me. It takes it from the inventory first, and when the stack it is taking it from, empties (and it possibly has to take from the next stack), it causes an NPE.

commented

Ah, that would probably cover my situation.

commented

I agree with Dykam here, I have had the same exact thing happening.
MentalMouse, you may have a different issue.

commented

another crash but from a server:
https://gist.github.com/FiveEYZ/e9db5b7c07030b81f0610fc471b15713

any news on this?