gnembon / fabric-carpet

Fabric Carpet
MIT License
1.73k stars 275 forks source link

Error while evaluating expression `query(e, 'portal_timer')` unless entity is in a portal. #1944

Open GunnyWaffle opened 4 months ago

GunnyWaffle commented 4 months ago

Carpet version: 1.21-1.4.147+v240613

When e~'portal_timer' or query(e, 'portal_timer') are used on an entity that is not currently standing in a portal block, the following error occurs:

Cannot fetch 'portal_timer' with these arguments
Error while evaluating expression

The expected behavior is the query returning 0 when an entity is not standing in a portal block. This was the case in all versions leading up to 1.20.3-1.4.128+v231205, which is the version I last used. I'm not certain when this issue began.