Skip to content

Commit

Permalink
Try investigate compiler error
Browse files Browse the repository at this point in the history
  • Loading branch information
zbx1425 committed Aug 2, 2023
1 parent 8a552ae commit 0e8cf0c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public void print(String str) {

public void playSound(ResourceLocation sound, float volume, float pitch, float range) {
scriptResultWriting.addSound(
Util.memoize(SoundEvent::createFixedRangeEvent).apply(sound, range),
SoundEvent.createFixedRangeEvent(sound, range),
volume, pitch
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public void print(String str) {
public void playCarSound(ResourceLocation sound, int carIndex, float x, float y, float z, float volume, float pitch, float range) {
scriptResultWriting.addCarSound(
carIndex,
Util.<ResourceLocation, Float, SoundEvent>memoize(SoundEvent::createFixedRangeEvent).apply(sound, range),
SoundEvent.createFixedRangeEvent(sound, range),
new Vector3f(x, y, z), volume, pitch
);
}
Expand All @@ -94,7 +94,7 @@ public void playAnnSound(ResourceLocation sound, float volume, float pitch) {
LocalPlayer player = Minecraft.getInstance().player;
if (player != null && train.isPlayerRiding(player)) {
player.playSound(
Util.<ResourceLocation, SoundEvent>memoize(pSound -> SoundEvent.createFixedRangeEvent(pSound, 16)).apply(sound),
SoundEvent.createFixedRangeEvent(sound, 16),
volume, pitch
);
}
Expand Down

0 comments on commit 0e8cf0c

Please sign in to comment.