-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drawers punchable from arrows #30
Comments
This is was definitely my intention with this mod - only features, no bugs. But basically the arrow is just executing "on_punch" of the drawer visual (as the player does with a leftclick). You could add a check to the leftclick-action, so it is only executed, if the puncher is a player. |
Nice, keep it in, keep it as feature. |
Not sure if feature or bug.
Became problem on my server as i have the animals_modpack npc archer gaurd and its arrows cause a crash
2019-05-02 22:26:38: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod '' in callback luaentity_Step(): Runtime error from mod '' in callback luaentity_Punch(): C:\test\bin\..\games\twt\mods\drawers/lua/visual.lua:187: attempt to index local 'inv' (a nil val 2019-05-02 22:26:38: ERROR[Main]: ue) 2019-05-02 22:26:38: ERROR[Main]: stack traceback: 2019-05-02 22:26:38: ERROR[Main]: C:\test\bin\..\games\twt\mods\drawers/lua/visual.lua:187: in function <C:\test\bin\..\games\twt\mods\drawers/lua/visual.lua:171> 2019-05-02 22:26:38: ERROR[Main]: [C]: in function 'punch'
A players arrows using the throwing mod are able to take items from drawer without crash
The text was updated successfully, but these errors were encountered: