real player [REAL]
This commit is contained in:
parent
358287df9c
commit
0049cd4d06
@ -13,7 +13,7 @@ import ru.dbotthepony.mc.otm.registry.MLootItemConditions
|
|||||||
|
|
||||||
object KilledByRealPlayerOrIndirectly : LootItemCondition, LootItemCondition.Builder {
|
object KilledByRealPlayerOrIndirectly : LootItemCondition, LootItemCondition.Builder {
|
||||||
override fun test(t: LootContext): Boolean {
|
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
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user