ValentinFunk / LibK

Library for fast gmod addon development
MIT License
53 stars 21 forks source link

Update mysqloolib.lua to work with MySQLOO 9.7.+ #39

Closed FredyH closed 2 years ago

FredyH commented 2 years ago

MySQLOO 9.7.0 updated mysqloolib to work with the latest version, this change reflects those changes. It is also backwards compatible with versions before MySQLOO 9.6.0.

FredyH commented 2 years ago

The FindMetaTable function only works if mysqloo is already required, so somewhere in this file you also need to require mysqloo. However, requiring will throw an error if mysqloo is not found (and pcalling it still prints an error), so some solution has to still be found for that.

ValentinFunk commented 2 years ago

Appreciate the fix, thank you!