Skip to content

Commit ec38a28

Browse files
committed
Fixes #5
1 parent 8b66ac3 commit ec38a28

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/LojHadronCollider/LojHadronCollider.gml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#macro __LHC_VERSION "v1.2.0"
1+
#macro __LHC_VERSION "v1.2.1"
22
#macro __LHC_PREFIX "[Loj Hadron Collider]"
33
#macro __LHC_SOURCE "https://github.com/Lojemiru/Loj-Hadron-Collider"
44
#macro __LHC_EVENT "__lhc_event_"
@@ -88,7 +88,7 @@ function lhc_create_interface(_name) {
8888
///@desc Inherits the function headers of the given interface.
8989
///@param interface The name of the interface to inherit from.
9090
function lhc_inherit_interface(_interface) {
91-
if (!asset_has_tags(object_index, _interface, asset_object)) asset_add_tags(object_index, _interface, asset_object);
91+
if (!asset_has_any_tag(object_index, _interface, asset_object)) asset_add_tags(object_index, _interface, asset_object);
9292

9393
// Loop over global interface struct for name value, set local variables of the index name to an empty function.
9494
var i = 0;
@@ -109,7 +109,7 @@ function lhc_assign_interface(_interface) {
109109
var i = 1;
110110
repeat (argument_count - 1) {
111111
// Set interface tag.
112-
if (!asset_has_tags(argument[i], _interface, asset_object)) asset_add_tags(argument[i], _interface, asset_object);
112+
if (!asset_has_any_tag(argument[i], _interface, asset_object)) asset_add_tags(argument[i], _interface, asset_object);
113113
++i;
114114
}
115115

@@ -291,7 +291,7 @@ function __lhc_check(_x, _y) {
291291
j = 0;
292292
// Scan through Interfaces and run relevant events.
293293
repeat (__lhc_intLen) {
294-
if (asset_has_tags(col.object_index, __lhc_interfaces[j], asset_object)) {
294+
if (asset_has_any_tag(col.object_index, __lhc_interfaces[j], asset_object)) {
295295
variable_instance_get(id, __LHC_EVENT + __lhc_interfaces[j])();
296296
}
297297
++j;

0 commit comments

Comments
 (0)