mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-09 07:20:04 -04:00
forbid attacking of ItemEntity
This commit is contained in:
parent
81f3644565
commit
725bf8c159
@ -23,7 +23,7 @@
|
||||
- Text
|
||||
- Items
|
||||
- Container (list with items, the inventory and their positions)
|
||||
- GUI
|
||||
- GUI
|
||||
- Buttons
|
||||
- TextField
|
||||
- Label
|
||||
|
@ -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