Fix Server Crashes (#800)

[SKIP]
This commit is contained in:
Integer Limit 2024-07-14 22:47:24 +10:00 committed by GitHub
parent 1026e63281
commit 2dd4e3dfbd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 6 deletions

View File

@ -751,7 +751,7 @@
},
{
"projectID": 932060,
"fileID": 5531121,
"fileID": 5531653,
"required": true
},
{

View File

@ -1,4 +1,6 @@
import com.nomiceu.nomilabs.util.LabsSide
// SIDE: CLIENT
// ^, Makes the Script only Run Client-Side
import net.minecraftforge.client.settings.KeyModifier
import org.lwjgl.input.Keyboard
@ -7,10 +9,6 @@ import static com.nomiceu.nomilabs.groovy.GroovyHelpers.KeyBindingHelpers.*
// This File overrides the Default Keybinds for New Players.
// All Keybinds that a new player would probably never need to use should probably be unset here.
// Doesn't matter on Server
// IMPORTANT! This stops the script from crashing on servers!
if (LabsSide.isDedicatedServer()) return
addOverride('keybind.baublesinventory', Keyboard.KEY_NONE)
addOverride('key.advancements', Keyboard.KEY_NONE)

View File

@ -1,3 +1,6 @@
// SIDE: CLIENT
// ^ Script only runs Client-Side
import appeng.core.AEConfig
import appeng.core.features.AEFeature
import com.nomiceu.nomilabs.util.LabsModeHelper