Closed master-lincoln closed 12 years ago
Ruby works : mod_.rb : Add to beginning and replace needed parts :
require 'java' java_import com.mojang.mojam.mod.ModSystem java_import com.mojang.mojam.MojamComponent java_import com.mojang.mojam.screen.MojamScreen java_import com.mojang.mojam.gui.components.Font
def OnRender() ModSystem.getFont().draw(MojamComponent.screen,"Ruby",20,20) end
same for lib.rb :
require 'java' java_import com.mojang.mojam.mod.ModSystem java_import com.mojang.mojam.MojamComponent
mods = ModSystem.new mojam = ModSystem.getMojam()
The puts in ModSystem are unneeded . I do not want to know who forgott the require 'java' and other parts when these are here : https://github.com/jruby/jruby/wiki/CallingJavaFromJRuby
Edit : Pull Request ...
Guess can be closed - ruby error fixed , key press crash fixed by eventable add method for Keys and adding missing level parameter to createlevel event ( python ? ) .
Thx
Starting the game currently yields the following error twice:
After choosing a map the following exception is thrown:
Additionally the game crashes when pressing
B
in-game. This key is registered by one of the demo mods.