aboutsummaryrefslogtreecommitdiff
path: root/features/events/index.js
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-01-19 07:40:53 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-01-19 07:40:53 +0800
commite96b7b4610441603bc29e118a36c539903e96d78 (patch)
treed9d1413f8b01a12899168c7e3e1e5c5693f5d641 /features/events/index.js
parentc73f2318f8b6c9555f77a3eeb823faef49b2467c (diff)
downloadSoopyV2-e96b7b4610441603bc29e118a36c539903e96d78.tar.gz
SoopyV2-e96b7b4610441603bc29e118a36c539903e96d78.tar.bz2
SoopyV2-e96b7b4610441603bc29e118a36c539903e96d78.zip
fix
Diffstat (limited to 'features/events/index.js')
-rw-r--r--features/events/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/features/events/index.js b/features/events/index.js
index 67add66..48b43ec 100644
--- a/features/events/index.js
+++ b/features/events/index.js
@@ -126,10 +126,10 @@ class Events extends Feature {
}
step(){
+ if(!Player.getInventory()) return
hasDianaShovle = false
let slots = [0, 1, 2, 3, 4, 5, 6, 7, 8]
-
slots.forEach(a=>{
item = Player.getInventory().getStackInSlot(a)
if(!item) return