clean up code and remove unnessisary imports
This commit is contained in:
parent
8232eacff2
commit
b84a3b22dc
2 changed files with 4 additions and 7 deletions
|
@ -25,11 +25,9 @@ const slot: Hooks.FC<slotProps> = (props, hooks) => {
|
|||
const { world, clientState } = useWorldContext(hooks)
|
||||
|
||||
const handleActivated = () => {
|
||||
if (tool.Parent !== clientState.character) {
|
||||
clientState.character.Humanoid.EquipTool(tool)
|
||||
} else {
|
||||
clientState.character.Humanoid.UnequipTools()
|
||||
}
|
||||
tool.Parent !== clientState.character
|
||||
? clientState.character.Humanoid.EquipTool(tool)
|
||||
: clientState.character.Humanoid.UnequipTools()
|
||||
}
|
||||
|
||||
// maybe opt this into our system for inputs?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue