dansanderson / picotool

Tools and Python libraries for manipulating Pico-8 game files. http://www.lexaloffle.com/pico-8.php
MIT License
367 stars 46 forks source link

luamin doesn't understand t() #63

Closed MagnusRunesson closed 2 years ago

MagnusRunesson commented 4 years ago

luamin doesn't understand that t() is a built-in method in Pico8 and replace it with a "random" function call.

This code:

function _update60()
    t()
end

minifies to:

function _update60()
    a()
end

resulting in a: attempting to call global 'a' (a nil value)

dansanderson commented 2 years ago

Resolved in 3b43f3c8e8d9ec7c06b761d39c9df71566588d71