diff --git a/haxelib.json b/haxelib.json index 34322c7..0f2bd2e 100644 --- a/haxelib.json +++ b/haxelib.json @@ -4,9 +4,9 @@ "license": "MIT", "tags": ["computercraft", "cc", "minecraft", "lua"], "description": "Bindings for the Lua APIs of the ComputerCraft mod for Minecraft", - "version": "1.0.1", + "version": "1.0.2", "classPath": "src", - "releasenote": "Adds missing HTTP api and globals (in ComputerCraft class)", + "releasenote": "Fixes missing @:luaDotMethod on TerminalObject", "contributors": [ "apemanzilla" ] diff --git a/src/cc/OS.hx b/src/cc/OS.hx index 59c4eff..ea1f9bb 100644 --- a/src/cc/OS.hx +++ b/src/cc/OS.hx @@ -28,11 +28,11 @@ extern class OS { @:native("pullEvent") private static function _pullEvent(?type: String): Dynamic; @:native("pullEventRaw") private static function _pullEventRaw(?type: String): Dynamic; - public static inline function pullEvent(?type: String): ArrayAccess { + public static inline function pullEvent(?type: String): Table { return cast TableTools.pack(_pullEvent(type)); } - public static inline function pullEventRaw(?type: String): ArrayAccess { + public static inline function pullEventRaw(?type: String): Table { return cast TableTools.pack(_pullEventRaw(type)); } } \ No newline at end of file diff --git a/src/cc/Term.hx b/src/cc/Term.hx index 54d08c5..7a0d417 100644 --- a/src/cc/Term.hx +++ b/src/cc/Term.hx @@ -14,6 +14,7 @@ extern class TerminalSize { public var height: Int; } +@:luaDotMethod extern class TerminalObject { public function write(text: String): Void; public function blit(text: String, colors: String, background: String): Void;