mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-12 00:47:26 -04:00
forbid attacking of ItemEntity
This commit is contained in:
parent
81f3644565
commit
725bf8c159
@ -56,6 +56,10 @@ class ItemEntity(connection: PlayConnection, entityType: EntityType, data: Entit
|
||||
}
|
||||
}
|
||||
|
||||
override fun onAttack(attacker: Entity): Boolean {
|
||||
return false
|
||||
}
|
||||
|
||||
|
||||
companion object : EntityFactory<ItemEntity> {
|
||||
override val RESOURCE_LOCATION: ResourceLocation = ResourceLocation("item")
|
||||
|
@ -49,7 +49,6 @@ object DesktopUtil {
|
||||
Log.log(LogMessageType.GENERAL, LogLevels.INFO) { "Can not open file: $file: Eros is disabled!" }
|
||||
return
|
||||
}
|
||||
// Desktop.getDesktop().open(File(path))
|
||||
|
||||
try {
|
||||
JavaFXUtil.HOST_SERVICES.showDocument(file.absolutePath)
|
||||
|
Loading…
x
Reference in New Issue
Block a user