修复DynamicFloatingText类的构建问题

This commit is contained in:
子沐呀
2024-08-07 11:33:16 +08:00
Unverified
parent 7f3da4eb87
commit b9e74c7b43
+1 -3
View File
@@ -539,9 +539,7 @@ class DynamicFloatingText extends StaticFloatingText {
* @param {boolean} [papi=true] 是否使用PAPI变量
*/
constructor(pos, text, updateRate = 1, papi = true) {
this.mPosition = pos;
this.mText = text;
this.mPlaceholderAPI = papi;
super(pos, text, papi);
this.mRuntimeId = GMLIB_API.createFloatingText(this.mPosition, this.mText, this.mPlaceholderAPI);
this.mUpdateRate = updateRate;
this.mTaskId = null;