Skip to content

Commit

Permalink
Change bottling machine to no longer use floats
Browse files Browse the repository at this point in the history
  • Loading branch information
voidsong-dragonfly committed Nov 11, 2023
1 parent bf71784 commit 2b18c2c
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,8 @@ public void tickClient(IMultiblockContext<State> context)
final Level rawLevel = level.getRawLevel();
for(final MultiblockProcess<BottlingMachineRecipe, ProcessContextInWorld<BottlingMachineRecipe>> process : state.processor.getQueue())
{
float fProcess = process.processTick;
Player localPlayer = ImmersiveEngineering.proxy.getClientPlayer();
//Note: the >= and < check instead of a single == is because fProcess is an int and transportTime and pressTime are floats. Because of that it has to be windowed
if(fProcess >= (STANDARD_TRANSPORT_TIME-13)&&fProcess < (STANDARD_TRANSPORT_TIME-11))
if(process.processTick==STANDARD_TRANSPORT_TIME-12)
{
final BlockPos soundPos = level.toAbsolute(new BlockPos(1, 1, 1));
rawLevel.playSound(localPlayer, soundPos, IESounds.bottling.get(), SoundSource.BLOCKS, .125F, 0.8F);
Expand Down

0 comments on commit 2b18c2c

Please sign in to comment.