JonathanLydall / JavaScript-Redstone-Simulator

9 stars 6 forks source link

com.mordritch.mcSim.World_Schematic is not a constructor #21

Closed AndersBillLinden closed 6 years ago

AndersBillLinden commented 6 years ago

I cloned the repo and put it in an apache folder. Browsing to index.php gave me the error

Uncaught TypeError: com.mordritch.mcSim.World_Schematic is not a constructor
    at com.mordritch.mcSim.BlockType_Air.proto.drawIcon (_Default.js:531)
    at Gui_FullApp.initPlaceableBlockList (gui_FullApp.js:746)
    at Gui_FullApp.init (gui_FullApp.js:60)
    at new Gui_FullApp (gui_FullApp.js:786)
    at HTMLDocument.<anonymous> (main.js:31)
    at n (jquery-1.7.1.min.js:2)
    at Object.fireWith (jquery-1.7.1.min.js:2)
    at Function.ready (jquery-1.7.1.min.js:2)
    at HTMLDocument.B (jquery-1.7.1.min.js:2)
JonathanLydall commented 6 years ago

I'm not sure if you managed to work around this to achieve your pull request, but the code is sitting in https://github.com/JonathanLydall/JsNbtParser.

I pushed a minor update to that repository last night of code which was uncommitted/pushed for a long time. I also have a pending commit/push of work I did the last couple of nights to have this other repository included as a submodule of this repository .

Once I have everything working, I will push and close this issue.

AndersBillLinden commented 6 years ago

Yes, I worked around this. Ollyhayes also worked around it in another way and I have used his code in the code I keep locally.