~williewillus/botania

0795950c8760c26b291f4ffe70359438cd961dcf — Vincent Lee 1 year, 22 days ago cb1b68d
Fix Terrablade spectator check not covering all cases

Closes #4480
M Xplat/src/main/java/vazkii/botania/common/item/equipment/tool/terrasteel/TerraBladeItem.java => Xplat/src/main/java/vazkii/botania/common/item/equipment/tool/terrasteel/TerraBladeItem.java +3 -2
@@ 52,7 52,7 @@ public class TerraBladeItem extends ManasteelSwordItem implements LensEffectItem
	}

	public static InteractionResult attackEntity(Player player, Level world, InteractionHand hand, Entity target, @Nullable EntityHitResult hit) {
		if (!player.level().isClientSide && !player.isSpectator()) {
		if (!player.level().isClientSide) {
			trySpawnBurst(player);
		}
		return InteractionResult.PASS;


@@ 63,7 63,8 @@ public class TerraBladeItem extends ManasteelSwordItem implements LensEffectItem
	}

	public static void trySpawnBurst(Player player, float attackStrength) {
		if (!player.getMainHandItem().isEmpty()
		if (!player.isSpectator()
				&& !player.getMainHandItem().isEmpty()
				&& player.getMainHandItem().is(BotaniaItems.terraSword)
				&& attackStrength == 1) {
			ManaBurstEntity burst = getBurst(player, player.getMainHandItem());