6 Commits
Author SHA1 Message Date
KezzandGitHub bee287927c Adventure 4.23.0 (#12690) 2025-06-25 21:16:18 +02:00
KezzandGitHub 4419afb9c9 fix: Safely handle nanosecond overflow in ClickCallback (#12686)
If you are creating a click callback using e.g. ChronoUnit.FOREVER.getDuration() this code will throw an ArithmeticException because toNanos overflows. The only way toNanos throws this exception is if the nanos overflow, so we can just safely cap it here as the max value for a long.
2025-06-21 12:58:46 +02:00
KezzandGitHub f303a076bc fix: Don't hardcode checks for translation registries (#12571)
Devs can register custom Translator instances, and we can use the new `#canTranslate` method to avoid having to iterate through the whole set of sources.
2025-05-21 18:19:00 +02:00
Kieran Wallbanks 19743ae5dc Add Tick TemporalUnit 2021-04-02 17:28:58 +01:00
Kieran Wallbanks 5468da1b03 Fix NotePlayEvent 2021-06-21 12:33:45 +01:00
Kieran Wallbanks e764b2b7f4 Fix NotePlayEvent
== AT ==
public org.bukkit.craftbukkit.block.data.CraftBlockData toNMS(Ljava/lang/Enum;Ljava/lang/Class;)Ljava/lang/Enum;
2021-06-21 14:23:50 +01:00