twoone-3 / BDSpyrunner

support python in liteloderbds
GNU General Public License v3.0
56 stars 18 forks source link

1.17.40适配 #16

Closed jfishing closed 3 years ago

jfishing commented 3 years ago

1.17.40适配,骑行事件的函数符号没有了,目前已经注释, onCommandBlockPerform事件,命令方块多的情况下会导致内存溢出,请解决。

twoone-3 commented 3 years ago

骑行事件改名了叫canAddPassager

twoone3 @.***

---原始邮件--- 发件人: @.> 发送时间: 2021年10月23日(周六) 下午5:27 收件人: @.>; 抄送: @.***>; 主题: [twoone-3/BDSpyrunner] 1.17.40适配 (PR #16)

1.17.40适配,骑行事件的函数符号没有了,目前已经注释, onCommandBlockPerform事件,命令方块多的情况下会导致内存溢出,请解决。

You can view, comment on, or merge this pull request online at:

  https://github.com/twoone-3/BDSpyrunner/pull/16

Commit Summary

1.17.40适配
File Changes

 M     DllMain.cpp     (10)      
 M     mc/Actor.cpp     (25)      
 M     mc/Block.cpp     (4)      
 M     mc/ItemStack.cpp     (6)      
 M     mod/Version.h     (4)     

Patch Links:

https://github.com/twoone-3/BDSpyrunner/pull/16.patch
https://github.com/twoone-3/BDSpyrunner/pull/16.diff
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

twoone-3 commented 3 years ago

getEntityTypeId需要用虚函数调用,因为如果调用Actor的是玩家的话返回的是0,而玩家ID是319,内存泄露是因为我监听回调创建Python对象而又没有引用导致的,正在考虑重写