Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,13 @@ public void registerBindings(BindingsEvent event) {
public void registerTypeWrappers(ScriptType type, TypeWrappers typeWrappers) {
typeWrappers.registerSimple(LootEntry.class, LootEntryWrapper::of);
typeWrappers.registerSimple(MinMaxBounds.Doubles.class, IntervalJS::ofDoubles);
typeWrappers.registerSimple(MinMaxBounds.Ints.class, IntervalJS::ofInt);


try {
typeWrappers.registerSimple(MinMaxBounds.Ints.class, IntervalJS::ofInt);
} catch (IllegalArgumentException ignored) {
// Wrapper already registered by KubeJS, skip
}

typeWrappers.registerSimple(ItemFilter.class, o -> {
if (o instanceof List<?> list) {
Map<Boolean, ? extends List<?>> split = list
Expand Down
Loading