mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-10 16:01:50 -04:00
forbid attacking of ItemEntity
This commit is contained in:
parent
81f3644565
commit
725bf8c159
@ -23,7 +23,7 @@
|
|||||||
- Text
|
- Text
|
||||||
- Items
|
- Items
|
||||||
- Container (list with items, the inventory and their positions)
|
- Container (list with items, the inventory and their positions)
|
||||||
- GUI
|
- GUI
|
||||||
- Buttons
|
- Buttons
|
||||||
- TextField
|
- TextField
|
||||||
- Label
|
- 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> {
|
companion object : EntityFactory<ItemEntity> {
|
||||||
override val RESOURCE_LOCATION: ResourceLocation = ResourceLocation("item")
|
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!" }
|
Log.log(LogMessageType.GENERAL, LogLevels.INFO) { "Can not open file: $file: Eros is disabled!" }
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
// Desktop.getDesktop().open(File(path))
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
JavaFXUtil.HOST_SERVICES.showDocument(file.absolutePath)
|
JavaFXUtil.HOST_SERVICES.showDocument(file.absolutePath)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user