Berny23 / LD-ToyPad-Emulator

Toy Pad Emulator for Lego Dimensions (Unofficial Fan Project)
https://github.com/Berny23/LD-ToyPad-Emulator
MIT License
249 stars 43 forks source link

Placing a figure to the left side of the red box will cause the page to break #176

Open danylopez123 opened 9 months ago

danylopez123 commented 9 months ago

There are times that i got an error like this:

Entry to delete: 38 Removing item: null TypeError: Cannot read property 'pad' of null at new Event (/home/danylopez123/LD-ToyPad-Emulator/node_modules/node-ld/dist/lib/Event.js:23:19) at ToyPadEmu.tagRemoveEvent (/home/danylopez123/LD-ToyPad-Emulator/node_modules/node-ld/dist/lib/ToyPadEmu.js:133:13) at ToyPadEmu.remove (/home/danylopez123/LD-ToyPad-Emulator/node_modules/node-ld/dist/lib/ToyPadEmu.js:121:9) at app.delete (/home/danylopez123/LD-ToyPad-Emulator/index.js:559:5) at Layer.handle [as handle_request] (/home/danylopez123/LD-ToyPad-Emulator/node_modules/express/lib/router/layer.js:95:5) at next (/home/danylopez123/LD-ToyPad-Emulator/node_modules/express/lib/router/route.js:144:13) at Route.dispatch (/home/danylopez123/LD-ToyPad-Emulator/node_modules/express/lib/router/route.js:114:3) at Layer.handle [as handle_request] (/home/danylopez123/LD-ToyPad-Emulator/node_modules/express/lib/router/layer.js:95:5) at /home/danylopez123/LD-ToyPad-Emulator/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/home/danylopez123/LD-ToyPad-Emulator/node_modules/express/lib/router/index.js:346:12)

At first i was confused why it happens but then it turns out that there were times that i "accidentally" placed a figure to the left side of the red box to delete them.

The figure still gets deleted but doesnt get removed from the emulator page and because of that, trying to move a figure after that will cause the error mentioned abobe unless you refresh the page.

This might sound like a minor thing and it's not special but this might also give to the others a heads up if they notice the emulator breaks because of this.

imagen