Willard21 / MineKhan

Minecraft for Khan Academy
78 stars 52 forks source link

Backspace bug #103

Closed Daniel-Cher closed 1 year ago

Daniel-Cher commented 2 years ago

When ever I press backspace the game crashes. Here's a screenshot: image

ImaginaryNeon commented 2 years ago

Could you show a video so we can see what was going on beforehand?

Willard21 commented 2 years ago

Nothing special. Just hit backspace and it crashes lol. Pretty easy to reproduce.

ImaginaryNeon commented 2 years ago

Nothing special. Just hit backspace and it crashes lol. Pretty easy to reproduce.

I meant what menu/"state" you had to be in. I reproduced it, and it only seems to happen after loading a world.

https://user-images.githubusercontent.com/92883596/168813887-0dc22756-513c-409c-9730-def93dc1f1ab.mp4

ImaginaryNeon commented 2 years ago

The pauses are me checking by backspacing.

Willard21 commented 2 years ago

Fair enough. In this case I knew that the backspace key only does anything in the game scene. It's supposed to throw a block on the ground, but that was mainly a proof-of-concept feature in the first place (since there's no inventory), so I forgot to test it after making changes to the Entity class.

Willard21 commented 1 year ago

I commented out the "drop block" code, so it no longer crashes.