forked from SteamWar/SteamWar
.
This commit is contained in:
@@ -18,8 +18,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
widener
|
|
||||||
steamwar.kotlin
|
steamwar.kotlin
|
||||||
|
widener
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.compileJava {
|
tasks.compileJava {
|
||||||
|
|||||||
+1
-1
@@ -52,7 +52,7 @@ object CannonCoreWand: Listener {
|
|||||||
fun onPlayerEquip(event: PlayerItemHeldEvent) {
|
fun onPlayerEquip(event: PlayerItemHeldEvent) {
|
||||||
val player = event.player
|
val player = event.player
|
||||||
val swPlayer = SWPlayer.of(event.player)
|
val swPlayer = SWPlayer.of(event.player)
|
||||||
val item = swPlayer.inventory.itemInMainHand
|
val item = player.inventory.getItem(event.newSlot) ?: return
|
||||||
|
|
||||||
if(!isWandItem(item)) {
|
if(!isWandItem(item)) {
|
||||||
swPlayer.removeComponent(EmptyCannonCoreWandDisplay::class.java)
|
swPlayer.removeComponent(EmptyCannonCoreWandDisplay::class.java)
|
||||||
|
|||||||
@@ -38,4 +38,5 @@ tasks.register<DevServer>("DevBau21") {
|
|||||||
dependsOn(":BauSystem:shadowJar")
|
dependsOn(":BauSystem:shadowJar")
|
||||||
dependsOn(":SchematicSystem:shadowJar")
|
dependsOn(":SchematicSystem:shadowJar")
|
||||||
template = "Bau21"
|
template = "Bau21"
|
||||||
|
debug = true
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user