LabyStudio / js-minecraft

A browser sandbox that provides all basic features to understand the render and physics engine of Minecraft.
Other
72 stars 29 forks source link

Fix loading error #10

Open CrazyH2 opened 9 months ago

CrazyH2 commented 9 months ago

Fixes loading by using class constructors

LabyStudio commented 8 months ago

What kind of error do you get? The TagRegistry is completely static and shouldn't require a constructor

CrazyH2 commented 8 months ago

What kind of error do you get? The TagRegistry is completely static and shouldn't require a constructor

Safari will return an error if it isn't a constructor.

LabyStudio commented 8 months ago

Just tested it on Safari/macOS and Safari/iOS. It works without any issues

CrazyH2 commented 7 months ago
Screenshot 2024-02-22 at 09 50 35

It gives me this error @LabyStudio

I am on macOS Monterey (12.5) MacBook Air (M1, 2020)

And when I changed it to a constructor it seemed to fix it.