real player [REAL]

This commit is contained in:
YuRaNnNzZZ 2024-10-08 04:55:05 +03:00
parent 358287df9c
commit 0049cd4d06
Signed by: YuRaNnNzZZ
GPG Key ID: 5F71738C85A6006D

View File

@ -13,7 +13,7 @@ import ru.dbotthepony.mc.otm.registry.MLootItemConditions
object KilledByRealPlayerOrIndirectly : LootItemCondition, LootItemCondition.Builder {
override fun test(t: LootContext): Boolean {
if (t.hasParam(LootContextParams.LAST_DAMAGE_PLAYER) /*&& t[LootContextParams.LAST_DAMAGE_PLAYER] !is FakePlayer*/) {
if (t.hasParam(LootContextParams.LAST_DAMAGE_PLAYER) && t[LootContextParams.LAST_DAMAGE_PLAYER] !is FakePlayer) {
return true
}