mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-09 20:12:14 +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)
|
if (isset($args->point) && $args->point < 0)
|
||||||
{
|
{
|
||||||
|
$new_point = 0;
|
||||||
$args->point = 0;
|
$args->point = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -724,7 +725,7 @@ class PointController extends Point
|
||||||
$trigger_obj->mode = $mode === 'plus' ? 'add' : $mode;
|
$trigger_obj->mode = $mode === 'plus' ? 'add' : $mode;
|
||||||
$trigger_obj->current_point = $current_point;
|
$trigger_obj->current_point = $current_point;
|
||||||
$trigger_obj->current_level = $current_level;
|
$trigger_obj->current_level = $current_level;
|
||||||
$trigger_obj->set_point = $point;
|
$trigger_obj->set_point = $new_point;
|
||||||
$trigger_obj->new_point = $new_point;
|
$trigger_obj->new_point = $new_point;
|
||||||
$trigger_output = ModuleHandler::triggerCall('point.setPoint', 'before', $trigger_obj);
|
$trigger_output = ModuleHandler::triggerCall('point.setPoint', 'before', $trigger_obj);
|
||||||
if(!$trigger_output->toBool())
|
if(!$trigger_output->toBool())
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue