From dc951c1870623be96d90fd4feccc047afbb293d8 Mon Sep 17 00:00:00 2001 From: McHorse Date: Thu, 18 Nov 2021 16:16:14 +0000 Subject: [PATCH] Update version.json and CHANGELOG.md --- CHANGELOG.md | 12 ++++++++++++ .../mappet/api/scripts/user/IScriptServer.java | 2 +- version.json | 5 +++-- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1cef80bb..ea1dcd58 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,15 @@ +## Version 0.1.3 + +This is a small patch update which fixes a couple of other things. + +**Compatible** with McLib **2.3.5**, Blockbuster **2.3** and Metamorph **1.2.9**. It doesn't mean that future versions of McLib, Blockbuster and Metamorph would be incompatible, but older versions are most likely incompatible. + +* Added `IScriptServer.getEntity(String)` scripting method +* Added Copy text context menu item to REPL messages, `clear()` function to clear all REPL messages, and `s` variable for fast `c.getSubject()` access within REPL +* Fixed player gets teleported (when they shouldn't) when using `IScriptPlayer.setRotations(float, float, float)` +* Fixed `UILayoutComponent.width(int)` not working properly with scrolling layout +* Fixed NPC ID gets erased when using `/mp npc state` command + ## Version 0.1.2 This is a small patch update which fixes a couple of things. diff --git a/src/main/java/mchorse/mappet/api/scripts/user/IScriptServer.java b/src/main/java/mchorse/mappet/api/scripts/user/IScriptServer.java index d6d7b529..f46bb3d3 100644 --- a/src/main/java/mchorse/mappet/api/scripts/user/IScriptServer.java +++ b/src/main/java/mchorse/mappet/api/scripts/user/IScriptServer.java @@ -60,7 +60,7 @@ public interface IScriptServer * var uuid = "29a91933-86f2-4683-8a87-218084d8c927"; * var entity = c.getServer().getEntity(uuid); * - * print(entity.getUniqueId() === uuid); + * print(entity.getUniqueId() === uuid); // true * } */ public IScriptEntity getEntity(String uuid); diff --git a/version.json b/version.json index 2a497589..b44b453f 100644 --- a/version.json +++ b/version.json @@ -1,13 +1,14 @@ { "homepage": "https://www.curseforge.com/minecraft/mc-mods/mappet", "1.12.2": { + "0.1.3": "This is a small patch update which fixes a couple of other things.", "0.1.2": "This is a small patch update which fixes a couple of things.", "0.1.1": "This is a small patch which also features new expression condition block.", "0.1": "This is public release update.", "0.1-alpha": "This first release provides tons of features: states, conditions, expressions, emitter block, trigger block, region block, crafting tables, quests, NPCs, factions, events, scripts, dialogues, quest chains, many commands, custom sound events, target selectors, global triggers, and much more." }, "promos": { - "1.12.2-latest": "0.1.2", - "1.12.2-recommended": "0.1.2" + "1.12.2-latest": "0.1.3", + "1.12.2-recommended": "0.1.3" } } \ No newline at end of file