fix: Protocol Tome quest-book open — correct KubeJS event to NetworkEvents.dataReceived
All checks were successful
Build & Release Pack / build (push) Successful in 1m44s
All checks were successful
Build & Release Pack / build (push) Successful in 1m44s
The client script used 'NetworkEvents.fromServer', which doesn't exist in KubeJS 1.21.1 (error: Unknown event). The correct receive event is 'NetworkEvents.dataReceived'. This makes the Protocol Tome actually open the FTB Quests book on right-click.
This commit is contained in:
parent
ff02f1df0c
commit
1417dd9c73
6 changed files with 6 additions and 6 deletions
|
|
@ -90,7 +90,7 @@ hash = "e192ce4474877cf8d51ad6f4196f127aa3f0821b943aa772d53fed7f2819338a"
|
||||||
|
|
||||||
[[files]]
|
[[files]]
|
||||||
file = "kubejs/client_scripts/03_protocol_tome.js"
|
file = "kubejs/client_scripts/03_protocol_tome.js"
|
||||||
hash = "04d1c24d4fe6a8dd71d5cd36257a1f4d76a1e62e8723ff3de9edf5ab20f57b1e"
|
hash = "8533cc83f2be863ace4bc674cf64b0e11a02c149dd0556425ed691a11574815e"
|
||||||
|
|
||||||
[[files]]
|
[[files]]
|
||||||
file = "kubejs/data/scicraft/advancements/protocol/first_signal.json"
|
file = "kubejs/data/scicraft/advancements/protocol/first_signal.json"
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
// Client: open the FTB Quests book when the server says the Tome was used.
|
// Client: open the FTB Quests book when the server says the Tome was used.
|
||||||
// The server sends 'scicraft:open_quests' on Tome right-click.
|
// The server sends 'scicraft:open_quests' on Tome right-click.
|
||||||
|
|
||||||
NetworkEvents.fromServer('scicraft:open_quests', event => {
|
NetworkEvents.dataReceived('scicraft:open_quests', event => {
|
||||||
try {
|
try {
|
||||||
Java.loadClass('dev.ftb.mods.ftbquests.client.FTBQuestsClient').openGui()
|
Java.loadClass('dev.ftb.mods.ftbquests.client.FTBQuestsClient').openGui()
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ pack-format = "packwiz:1.1.0"
|
||||||
[index]
|
[index]
|
||||||
file = "index.toml"
|
file = "index.toml"
|
||||||
hash-format = "sha256"
|
hash-format = "sha256"
|
||||||
hash = "f67dec64fdf8212db06b444519aa39e36598b68628e49ee821642ce896fc7ce5"
|
hash = "531f24a0a4e835bddfe0cd96771c11532277119c7bb0aec049011cb1fea663ac"
|
||||||
|
|
||||||
[versions]
|
[versions]
|
||||||
minecraft = "1.21.1"
|
minecraft = "1.21.1"
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@ hash = "e192ce4474877cf8d51ad6f4196f127aa3f0821b943aa772d53fed7f2819338a"
|
||||||
|
|
||||||
[[files]]
|
[[files]]
|
||||||
file = "kubejs/client_scripts/03_protocol_tome.js"
|
file = "kubejs/client_scripts/03_protocol_tome.js"
|
||||||
hash = "04d1c24d4fe6a8dd71d5cd36257a1f4d76a1e62e8723ff3de9edf5ab20f57b1e"
|
hash = "8533cc83f2be863ace4bc674cf64b0e11a02c149dd0556425ed691a11574815e"
|
||||||
|
|
||||||
[[files]]
|
[[files]]
|
||||||
file = "kubejs/data/scicraft/advancements/protocol/first_signal.json"
|
file = "kubejs/data/scicraft/advancements/protocol/first_signal.json"
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
// Client: open the FTB Quests book when the server says the Tome was used.
|
// Client: open the FTB Quests book when the server says the Tome was used.
|
||||||
// The server sends 'scicraft:open_quests' on Tome right-click.
|
// The server sends 'scicraft:open_quests' on Tome right-click.
|
||||||
|
|
||||||
NetworkEvents.fromServer('scicraft:open_quests', event => {
|
NetworkEvents.dataReceived('scicraft:open_quests', event => {
|
||||||
try {
|
try {
|
||||||
Java.loadClass('dev.ftb.mods.ftbquests.client.FTBQuestsClient').openGui()
|
Java.loadClass('dev.ftb.mods.ftbquests.client.FTBQuestsClient').openGui()
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ pack-format = "packwiz:1.1.0"
|
||||||
[index]
|
[index]
|
||||||
file = "index.toml"
|
file = "index.toml"
|
||||||
hash-format = "sha256"
|
hash-format = "sha256"
|
||||||
hash = "46114e199bfa15e8e5fb48a5eb13347c8570e8170ee5ed370ad0addb0fd291f2"
|
hash = "8085d282381af5af60852646a2ded387cc45db4d7f60054a0419f701d2f0aa15"
|
||||||
|
|
||||||
[versions]
|
[versions]
|
||||||
minecraft = "1.21.1"
|
minecraft = "1.21.1"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue