mirror of
https://github.com/eaglerforge/EaglerForgeInjector
synced 2025-07-23 06:01:38 -09:00
only allow sound keygen on 1.12
This commit is contained in:
parent
a3189d3d99
commit
2f9edbc381
@ -1249,6 +1249,9 @@ const modapi_postinit = "(" + (() => {
|
||||
return qhash(entity, values, 127);
|
||||
}
|
||||
ModAPI.keygen.sound = function (soundId) {
|
||||
if (!ModAPI.is_1_12) {
|
||||
return -1;
|
||||
}
|
||||
const SoundEvent = ModAPI.reflect.getClassByName("SoundEvent")
|
||||
const values = ModAPI.util.wrap(SoundEvent.staticVariables.REGISTRY).getCorrective().underlyingIntegerMap.identityMap.elementData.filter(x=>!!x).map(y=>y.value.value);
|
||||
return qhash(soundId, values, 4095);
|
||||
|
Loading…
x
Reference in New Issue
Block a user