otm_player -> player

This commit is contained in:
DBotThePony 2023-01-14 22:14:15 +07:00
parent d5186edb23
commit f54322a94b
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -943,8 +943,7 @@ class MatteryPlayerCapability(val ply: Player) : ICapabilityProvider, INBTSerial
event.entity.getCapability(MatteryCapability.MATTERY_PLAYER).ifPresentK { it.onHurt(event) } event.entity.getCapability(MatteryCapability.MATTERY_PLAYER).ifPresentK { it.onHurt(event) }
} }
const val CAPABILITY_KEY = "otm_player" val CAPABILITY_LOCATION = ResourceLocation(OverdriveThatMatters.MOD_ID, "player")
val CAPABILITY_LOCATION = ResourceLocation(OverdriveThatMatters.MOD_ID, CAPABILITY_KEY)
fun onAttachCapabilityEvent(event: AttachCapabilitiesEvent<Entity>) { fun onAttachCapabilityEvent(event: AttachCapabilitiesEvent<Entity>) {
val ent = event.`object` val ent = event.`object`