Revert "Update core.lua"

This reverts commit 8a49d5ea881214c83d8a08df0da56300218f48e0.