1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-12-13 18:21:51 +00:00
This commit is contained in:
tobspr 2022-01-17 22:09:05 +01:00
parent ce0c2c4977
commit 2ac34665b3

View File

@ -391,12 +391,10 @@ export class ModInterface {
/**
*
* @param {Object} obj
* @param {Object} prototype
* @param {({ $super, $old }) => any} extender
*/
extendObject(obj, extender) {
const prototype = obj.prototype;
extendObject(prototype, extender) {
const $super = Object.getPrototypeOf(prototype);
const $old = {};
const extensionMethods = extender({ $super, $old });