Skip to content

Commit

Permalink
Ported some more entity procedure blocks to NF 1.20.4
Browse files Browse the repository at this point in the history
  • Loading branch information
KlemenDEV committed Feb 25, 2024
1 parent bfa0893 commit c014403
Show file tree
Hide file tree
Showing 10 changed files with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
Entity _ent = ${input$entity};
if (!_ent.level().isClientSide() && _ent.getServer() != null) {
Optional<CommandFunction> _fopt = _ent.getServer().getFunctions().get(${toResourceLocation(input$function)});
Optional<CommandFunction<CommandSourceStack>> _fopt = _ent.getServer().getFunctions().get(${toResourceLocation(input$function)});
if (_fopt.isPresent())
_ent.getServer().getFunctions().execute(_fopt.get(), _ent.createCommandSourceStack());
}
Expand Down

0 comments on commit c014403

Please sign in to comment.