drawers
drawers copied to clipboard
Drawers punchable from arrows
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
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.
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.