Skip to content

Commit

Permalink
i don't understand this shit anymore man
Browse files Browse the repository at this point in the history
  • Loading branch information
maloryware committed Oct 10, 2024
1 parent fc8a2c4 commit 203adec
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import io.github.maloryware.backstreet_gardener.component.BongComponent;
import io.github.maloryware.backstreet_gardener.screen.handler.BongScreenHandler;
import io.github.maloryware.backstreet_gardener.sound.BSGSounds;
import io.github.maloryware.backstreet_gardener.sound.BSGSoundsClient;
import io.github.maloryware.backstreet_gardener.utils.PacketUtils;
import io.wispforest.owo.particles.ClientParticles;
import io.wispforest.owo.ui.core.PositionedRectangle;
Expand Down Expand Up @@ -115,6 +114,7 @@ public TypedActionResult<ItemStack> use(World world, PlayerEntity user, Hand han


}

else if(user.isSneaking()){
if(!world.isClient()) {
stack.set(BSGComponents.BONG_COMPONENT, BongComponent.of(false, 0, temp.resourceQuantity()));
Expand Down Expand Up @@ -205,6 +205,11 @@ public static NamedScreenHandlerFactory createScreenHandlerFactory(World world,
), stack.getName());
}

@Override
public ItemStack finishUsing(ItemStack stack, World world, LivingEntity user) {
if(!world.isClient) PacketUtils.playSoundInstance(PacketUtils.Sounds.BLOWING_SMOKE, (PlayerEntity) user);
return super.finishUsing(stack, world, user);
}
}
// the following code was based off of WispForest's OutTheDoor mod
// special thanks to Glisco for providing me with this!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public static int fitTo(int ref, int boxSize, int maxValue){
}


// todo: change this to something actually fucking usable holy shit it's BAD
public static class AdvancedTextureComponent extends TextureComponent{

private Color COLOR_GRADIENT_FADE_START;
Expand Down

0 comments on commit 203adec

Please sign in to comment.