diff options
author | tenplus1 <tenplus1@users.noreply.github.com> | 2017-02-23 20:03:18 +0100 |
---|---|---|
committer | Auke Kok <sofar+github@foo-projects.org> | 2017-03-10 11:24:10 -0800 |
commit | d785456b3fa35faf47cb972fde9e8668382c5e22 (patch) | |
tree | 6de05e18b2a4ae5f04cd3f9d0b3f44aacfb7f4ea /src/script | |
parent | 2baa191a64c4a0f4475bfd12540672dc99405f4f (diff) | |
download | minetest-d785456b3fa35faf47cb972fde9e8668382c5e22.tar.gz minetest-d785456b3fa35faf47cb972fde9e8668382c5e22.tar.bz2 minetest-d785456b3fa35faf47cb972fde9e8668382c5e22.zip |
Optimize item.lua
Replace slow ItemStack get_definitions with registered_nodes one's and cached playername as it's used multiple times. Also removed local item = itemstack:peek_item() as it is never used.
Diffstat (limited to 'src/script')
0 files changed, 0 insertions, 0 deletions