mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Ensure compatibility with point triggers
This commit is contained in:
parent
848a7cb878
commit
94069ebfd6
1 changed files with 2 additions and 1 deletions
|
|
@ -715,6 +715,7 @@ class PointController extends Point
|
|||
}
|
||||
if (isset($args->point) && $args->point < 0)
|
||||
{
|
||||
$new_point = 0;
|
||||
$args->point = 0;
|
||||
}
|
||||
|
||||
|
|
@ -724,7 +725,7 @@ class PointController extends Point
|
|||
$trigger_obj->mode = $mode === 'plus' ? 'add' : $mode;
|
||||
$trigger_obj->current_point = $current_point;
|
||||
$trigger_obj->current_level = $current_level;
|
||||
$trigger_obj->set_point = $point;
|
||||
$trigger_obj->set_point = $new_point;
|
||||
$trigger_obj->new_point = $new_point;
|
||||
$trigger_output = ModuleHandler::triggerCall('point.setPoint', 'before', $trigger_obj);
|
||||
if(!$trigger_output->toBool())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue