Skip to content

Commit

Permalink
#43 Removed spin modifiers.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shynixn committed Aug 24, 2024
1 parent 4f2b316 commit 2df1df7
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 156 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ plugins {
}

group = "com.github.shynixn"
version = "1.7.0"
version = "1.8.0"

repositories {
mavenCentral()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ class TennisBallImpl(
private val bounceComponent: BounceComponent,
private val playerComponent: PlayerComponent,
private val entityComponent: ArmorstandEntityComponent?, // Armorstand is optional.
private val spinComponent: SpinComponent,
private val slimeEntityComponent: SlimeEntityComponent,
private val settings: TennisBallSettings,
private val plugin: Plugin,
Expand Down Expand Up @@ -103,7 +102,6 @@ class TennisBallImpl(
kickVector.y += settings.verticalSpeedAbsolute
setVelocity(kickVector.toVector())
delay(250)
spinComponent.setSpin(prevDirection, player.eyeLocation.direction.toVector3d())
}
}

Expand Down Expand Up @@ -135,7 +133,6 @@ class TennisBallImpl(
playerComponent.tickMinecraft()
entityComponent?.tickMinecraft()
slimeEntityComponent.tickMinecraft()
spinComponent.tickMinecraft()
}

/**
Expand All @@ -147,7 +144,6 @@ class TennisBallImpl(
playerComponent.tickPhysic()
entityComponent?.tickPhysic()
slimeEntityComponent.tickPhysic()
spinComponent.tickPhysic()
}

/**
Expand All @@ -159,7 +155,6 @@ class TennisBallImpl(
playerComponent.close()
entityComponent?.close()
slimeEntityComponent.close()
spinComponent.close()
isDead = true
game = null
}
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,6 @@ class TennisBallFactoryImpl @Inject constructor(
val playerComponent =
PlayerComponent(mathPhysicComponent, settings.renderVisibilityUpdateMs, settings.renderDistanceBlocks)

val spinComponent = SpinComponent(
mathPhysicComponent,
settings.maximumSpinningVelocity,
settings.spinBaseMultiplier,
settings.spinMaximum,
settings.spinMinimum,
settings.spinDefault,
settings.spinVertical
)

val armorStandEntityId = packetService.getNextEntityId()
val slimeEntityId = packetService.getNextEntityId()

Expand Down Expand Up @@ -149,7 +139,6 @@ class TennisBallFactoryImpl @Inject constructor(
bounceComponent,
playerComponent,
armorstandEntityComponent,
spinComponent,
slimeEntityComponent,
settings,
plugin,
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin-legacy.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: MCTennis
version: 1.7.0
version: 1.8.0
author: Shynixn
website: https://www.spigotmc.org/members/shynixn.63455/
main: com.github.shynixn.mctennis.MCTennisPlugin
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: MCTennis
version: 1.7.0
version: 1.8.0
author: Shynixn
website: https://www.spigotmc.org/members/shynixn.63455/
main: com.github.shynixn.mctennis.MCTennisPlugin
Expand Down

0 comments on commit 2df1df7

Please sign in to comment.