aboutsummaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
authortenplus1 <tenplus1@users.noreply.github.com>2017-02-23 20:03:18 +0100
committerAuke Kok <sofar+github@foo-projects.org>2017-03-10 11:24:10 -0800
commitd785456b3fa35faf47cb972fde9e8668382c5e22 (patch)
tree6de05e18b2a4ae5f04cd3f9d0b3f44aacfb7f4ea /src/script
parent2baa191a64c4a0f4475bfd12540672dc99405f4f (diff)
downloadminetest-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