optimizations

This commit is contained in:
Mylloon 2021-07-01 03:12:41 +02:00
parent a1ddec66c5
commit 9c8edbeafb

View file

@ -1,5 +1,6 @@
options: options:
tailleInventaire: 41 # 36 d'inventaire + 4 d'équipement + 1 seconde main tailleInventaire: 41 # 37 d'inventaire + 4 d'équipement + 1 seconde main
messageChangement: "&7Changement d'inventaire..."
on load: on load:
ScriptList("add", script) ScriptList("add", script)
@ -23,10 +24,10 @@ function chargementInventaire(player: player, gamemode: text):
on gamemode change: on gamemode change:
if old gamemode of player is survival: if old gamemode of player is survival:
sauvegardeInventaire(player, "survival") sauvegardeInventaire(player, "%old gamemode of player%")
send "&7Changement d'inventaire..." send {@messageChangement}
chargementInventaire(player, "creative") chargementInventaire(player, "creative")
else if gamemode of player is survival: else if gamemode of player is survival:
sauvegardeInventaire(player, "creative") sauvegardeInventaire(player, "creative")
send "&7Changement d'inventaire..." send {@messageChangement}
chargementInventaire(player, "survival") chargementInventaire(player, "%gamemode of player%")