Browse Source

reeeeeeeeeeeeeeeee

Snugglez 6 years ago
parent
commit
aa4a00e8b6
3 changed files with 4 additions and 3 deletions
  1. 2 1
      index.js
  2. 1 1
      manifest.json
  3. 1 1
      module.json

+ 2 - 1
index.js

@@ -1,6 +1,7 @@
 module.exports = function justspamf(d) {
   d.hook('S_DIALOG', 3, (e) => {
-    for (let i = 0; i < e.buttons.length; i++) { if ([1, 2, 4, 5, 51, 53, 54, 55, 56, 63].includes(e.buttons[i].type)) e.buttons[i].type = 43 }
+    if(!e.buttons.length) return
+    for (let i = 0; i < e.buttons.length; i++) { if ([1, 2, 3, 4, 5, 51, 53, 54, 55, 56, 63].includes(e.buttons[i].type)) e.buttons[i].type = 43 }
     e.type = 1
     return true
   })

+ 1 - 1
manifest.json

@@ -1,7 +1,7 @@
 {
 	"files": {
 		"README.md": "316aa12aaf8aae78c3ff92ab4c97c75c1fa07872be1eed3e47b7853622317913",
-		"index.js": "5c1eb334f8e3f2839c2fb266098a544fc71c8484779a034c38c5788200d7d467"
+		"index.js": "321214429e78f7cdcf6979bdb82731d838ff8b8296bdb5e08d7d83b5dfd38bfb"
 	},
 	"defs": {
 		"S_DIALOG": 3

+ 1 - 1
module.json

@@ -4,7 +4,7 @@
     "name": "JustSpamF",
     "author": "Snug",
     "description": "Changes npc interactions to a form that let you hit F to progress including teleportals",
-    "version": "1",
+    "version": "1.3",
 	"servers": ["https://raw.githubusercontent.com/Snugglez/JustSpamF/master/"],
 	"supportUrl": "https://github.com/Snugglez/JustSpamF/blob/master/README.md"
 }