Skip to content

Commit

Permalink
Merge pull request #1902 from GiganticMinecraft/develop
Browse files Browse the repository at this point in the history
バージョン 76 リリース
  • Loading branch information
Lucky3028 authored Feb 14, 2023
2 parents 7526c85 + caf69e7 commit e992693
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/create_new_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
TOKEN=${{ secrets.VERSION_BUMP_WORKFLOW_PUSH_TOKEN }}
git add -A
git commit -m "[bump] ${{ steps.bump.outputs.old_version }} -> ${{ steps.bump.outputs.new_version }}"
git commit -m "chore(bump): ${{ steps.bump.outputs.old_version }} -> ${{ steps.bump.outputs.new_version }}"
# masterへのマージはブランチが最新であることが要求されるため、ここでマージしておく
git fetch origin master
Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import java.io._
ThisBuild / scalaVersion := "2.13.4"
// ThisBuild / version はGitHub Actionsによって取得/自動更新される。
// 次の行は ThisBuild / version := "(\d*)" の形式でなければならない。
ThisBuild / version := "75"
ThisBuild / version := "76"
ThisBuild / organization := "click.seichi"
ThisBuild / description := "ギガンティック☆整地鯖の独自要素を司るプラグイン"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import de.tr7zw.itemnbtapi.NBTItem
import org.bukkit.ChatColor._
import org.bukkit.Sound
import org.bukkit.attribute.Attribute
import org.bukkit.entity.{EntityType, Monster, Player}
import org.bukkit.entity.{Creeper, EntityType, Monster, Player}
import org.bukkit.event.entity.EntityDamageEvent.DamageCause
import org.bukkit.event.entity.{EntityDamageByEntityEvent, EntityExplodeEvent}
import org.bukkit.event.player.{PlayerItemConsumeEvent, PlayerJoinEvent}
Expand All @@ -41,8 +41,8 @@ class ValentineListener[F[_]: ConcurrentEffect: NonServerThreadContextShift](
if (!isInEvent) return

event.getEntity match {
case monster: Monster if monster.isDead && monster.getType == EntityType.CREEPER =>
randomlyDropItemAt(monster, droppedCookie, itemDropRate)
case creeper: Creeper =>
randomlyDropItemAt(creeper, droppedCookie, itemDropRate)
case _ =>
}
}
Expand All @@ -60,7 +60,7 @@ class ValentineListener[F[_]: ConcurrentEffect: NonServerThreadContextShift](
event.getEntity match {
case damaged: Monster if !excludedMonsters.contains(damaged.getType) =>
val entityMaxHealth = damaged.getAttribute(Attribute.GENERIC_MAX_HEALTH).getValue
// damagedが死んだならば
// 巻き込まれたMonsterが死んだならば
if (entityMaxHealth <= event.getDamage) {
randomlyDropItemAt(damaged, droppedCookie, itemDropRate)
}
Expand Down

0 comments on commit e992693

Please sign in to comment.