clean up code and remove unnessisary imports

This commit is contained in:
Reid 2023-08-11 17:44:27 -07:00
parent 8232eacff2
commit b84a3b22dc
2 changed files with 4 additions and 7 deletions

View file

@ -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?