Locks

Locks

8M Downloads

crash in 1.16

lordi-erez opened this issue ยท 4 comments

commented

Same here. 1.16.5.

commented

I have the same issue trying to load the world.
Locks crashlog.txt

commented

Same...

commented

The issue is this mod targets a forge build in the breaking changes window (version 1.16.2-33.0.5), as of version 1.16.2-33.0.21 the method LazyOptional#map was renamed to LazyOptional#lazyMap.

This should be fairly simple to fix, bump the forge version and change the reference from map to lazyMap.

Build: 1.16.2-33.0.21 - Tue Aug 25 01:11:38 GMT 2020
gigaherz:
Clarify in the LazyOptional which methods carry the lazyness over to the returned value and which don't. (#6750)

  For consistency, this meant making a few changes:
  - Renamed the existing lazy mapping method to lazyMap, to indicate that it doesn't run the mapping immediately.
  - Added a new implementation of map(), which returns Optional<T>, and resolves the value in the process.
  - Changed filter() to return Optional, since there's no way to filter lazily.
  - Added a new method resolve(), which helps convert the custom LazyOptional class into a standard Optional, for use
  with library methods that expect Optional<T>.
  
  * Update License headers.