Private
Public Access
1
0

don't drop bee swarm blocks when destroyed

fix #1
This commit is contained in:
2026-03-21 01:55:17 +01:00
parent 898056284e
commit f394124771

View File

@@ -14,6 +14,11 @@ public class BlockBeeSwarm : Block
private static readonly Cuboidf downBox = new(0.25f, 0f, 0.25f, 0.75f, 0.2f, 0.75f);
private static readonly Cuboidf upBox = new(0.25f, 0.8f, 0.25f, 0.75f, 1f, 0.75f);
public override ItemStack[] GetDrops(IWorldAccessor world, BlockPos pos, IPlayer byPlayer, float dropQuantityMultiplier = 1)
{
return [];
}
public override float GetAmbientSoundStrength(IWorldAccessor world, BlockPos pos)
{
if (world.BlockAccessor.GetBlockEntity(pos) is not BlockEntityBeeSwarm swarm)