call releaseEquip when an equipped entity is dropped with a secondary press

This commit is contained in:
Seth Alves 2017-01-17 13:27:01 -08:00
parent 0cc317d13b
commit 89d7b8bfc6

View file

@ -2418,6 +2418,7 @@ function MyController(hand) {
// we have an equipped object and the secondary trigger was released
// short-circuit the other checks and release it
this.preparingHoldRelease = false;
this.callEntityMethodOnGrabbed("releaseEquip");
this.setState(STATE_OFF, "equipping ended via secondary press");
return;
}