Skip to content
This repository was archived by the owner on Apr 15, 2024. It is now read-only.

Commit

Permalink
severe problems caused by a wild salami (2.0.6)
Browse files Browse the repository at this point in the history
  • Loading branch information
SneezingCactus committed Feb 27, 2024
1 parent 5983ea9 commit a5dcef1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion dist/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,5 @@
"48": "icons/gmmaker48.png",
"128": "icons/gmmaker128.png"
},
"version": "2.0.5"
"version": "2.0.6"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gmmaker",
"version": "2.0.5",
"version": "2.0.6",
"dependencies": {
"@blockly/field-colour-hsv-sliders": "^2.0.11",
"@blockly/plugin-workspace-search": "^6.0.9",
Expand Down
6 changes: 3 additions & 3 deletions src/inject/injector.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ window.gmInjectBonkScript = function(bonkSrc) {
{name: 'InputHandler', regex: 'Date.{0,100}new ([^\\(]+).{0,100}\\$\\(document', isConstructor: true},
// This class' task is to calculate the game step every 1/30 seconds.
// It's used by gmmaker to manipulate the game state, detect collisions, do raycasts, etc.
{name: 'PhysicsClass', regex: '[\\{\\};]([A-Za-z])\\[.{0,100}\\]={discs:', isConstructor: true},
{name: 'PhysicsClass', regex: '[\\{\\};\\n]([A-Za-z])\\[.{0,100}\\]={discs:', isConstructor: true},
// This class contains a list of all the available modes, their descriptions, and their ids.
// It's used by gmmaker to add the modes to the base mode dropdown in Mode Settings.
{name: 'ModeList', regex: '[\\}\\{;]([A-Za-z0-9]{3}\\[[0-9]{0,10}\\]).{0,50}={lobbyName', isConstructor: true},
Expand Down Expand Up @@ -72,7 +72,7 @@ window.gmInjectBonkScript = function(bonkSrc) {
let funcHooks = '';
const funcNames = [];
gmRegexes.funcs.map((function(func) {
const match = bonkSrc.match(func.regex);
const match = bonkSrc.match(func.regex, 'm');

if (!match) {
console.error(`[Game Mode Maker] Regex failed!`, func);
Expand Down Expand Up @@ -126,7 +126,7 @@ window.bonkCodeInjectors.push((bonkSrc) => {
return gmInjectBonkScript(bonkSrc);
} catch (error) {
alert(
`An error ocurred while loading Game Mode Maker.
`An error ocurred while loading Game Mode Maker v${require('../../package.json').version}.
This may have happened because you have an extension that is not \
Expand Down
4 changes: 0 additions & 4 deletions src/inject/runInjectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@

let src = await bonkScriptResponse.text();

await null;

console.log("balls");

if (!window.bonkCodeInjectors) {
window.bonkCodeInjectors = [];
alert('Something went wrong with loading Bonk.io extensions.');
Expand Down

0 comments on commit a5dcef1

Please sign in to comment.