mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-15 18:30:27 -04:00
Properly sync touch mode when first sending screen state to clients.
This commit is contained in:
parent
92ce6fd634
commit
4b49b579d2
@ -259,6 +259,17 @@ class Screen(var tier: Int) extends traits.TextBuffer with SidedEnvironment with
|
||||
nbt.setBoolean(Settings.namespace + "invertTouchMode", invertTouchMode)
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT) override
|
||||
def readFromNBTForClient(nbt: NBTTagCompound) {
|
||||
super.readFromNBTForClient(nbt)
|
||||
invertTouchMode = nbt.getBoolean("invertTouchMode")
|
||||
}
|
||||
|
||||
override def writeToNBTForClient(nbt: NBTTagCompound) {
|
||||
super.writeToNBTForClient(nbt)
|
||||
nbt.setBoolean("invertTouchMode", invertTouchMode)
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------- //
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
|
Loading…
x
Reference in New Issue
Block a user