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 30ba73b commit 8a552ae
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

import java.util.concurrent.Future;

@SuppressWarnings("unused")
public class TrainScriptContext {

public Future<?> scriptStatus;
Expand Down Expand Up @@ -83,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.memoize(SoundEvent::createFixedRangeEvent).apply(sound, range),
Util.<ResourceLocation, Float, SoundEvent>memoize(SoundEvent::createFixedRangeEvent).apply(sound, range),
new Vector3f(x, y, z), volume, pitch
);
}
Expand Down

0 comments on commit 8a552ae

Please sign in to comment.