diff options
| author | shedaniel <daniel@shedaniel.me> | 2021-04-10 14:37:45 +0800 |
|---|---|---|
| committer | shedaniel <daniel@shedaniel.me> | 2021-04-10 14:37:45 +0800 |
| commit | 98f78135b76954ce0c525f4fa2bb79aa54595b28 (patch) | |
| tree | d4db91177c4795e562fdb0f0a681d8dd153d51d8 /runtime/src | |
| parent | f776416d55163a0510b2ce1ebf9f9429c4603b18 (diff) | |
| parent | 6d7690b3410e6aa837089987c08598cb9ecbe45a (diff) | |
| download | RoughlyEnoughItems-98f78135b76954ce0c525f4fa2bb79aa54595b28.tar.gz RoughlyEnoughItems-98f78135b76954ce0c525f4fa2bb79aa54595b28.tar.bz2 RoughlyEnoughItems-98f78135b76954ce0c525f4fa2bb79aa54595b28.zip | |
Merge branch '6.x' into 6.x-1.17
# Conflicts:
# api/src/main/java/me/shedaniel/rei/api/client/entry/renderer/EntryRenderer.java
# api/src/main/java/me/shedaniel/rei/api/common/entry/EntryStack.java
# gradle.properties
# runtime/src/main/java/me/shedaniel/rei/impl/client/search/IntRange.java
# runtime/src/main/java/me/shedaniel/rei/impl/common/entry/AbstractEntryStack.java
# runtime/src/main/java/me/shedaniel/rei/plugin/client/entry/ItemEntryDefinition.java
Diffstat (limited to 'runtime/src')
| -rw-r--r-- | runtime/src/main/java/me/shedaniel/rei/impl/client/search/IntRange.java | 23 | ||||
| -rw-r--r-- | runtime/src/main/java/me/shedaniel/rei/impl/common/entry/AbstractEntryStack.java | 2 |
2 files changed, 24 insertions, 1 deletions
diff --git a/runtime/src/main/java/me/shedaniel/rei/impl/client/search/IntRange.java b/runtime/src/main/java/me/shedaniel/rei/impl/client/search/IntRange.java index 05c5e1ca4..28b3720a0 100644 --- a/runtime/src/main/java/me/shedaniel/rei/impl/client/search/IntRange.java +++ b/runtime/src/main/java/me/shedaniel/rei/impl/client/search/IntRange.java @@ -1,3 +1,26 @@ +/* + * This file is licensed under the MIT License, part of Roughly Enough Items. + * Copyright (c) 2018, 2019, 2020 shedaniel + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + package me.shedaniel.rei.impl.client.search; import java.util.Objects; diff --git a/runtime/src/main/java/me/shedaniel/rei/impl/common/entry/AbstractEntryStack.java b/runtime/src/main/java/me/shedaniel/rei/impl/common/entry/AbstractEntryStack.java index 3cbf8d511..e272a8d70 100644 --- a/runtime/src/main/java/me/shedaniel/rei/impl/common/entry/AbstractEntryStack.java +++ b/runtime/src/main/java/me/shedaniel/rei/impl/common/entry/AbstractEntryStack.java @@ -154,7 +154,7 @@ public abstract class AbstractEntryStack<A> extends AbstractRenderer implements @Override @Nullable public Tooltip getTooltip(Point mouse, boolean appendModName) { - Mutable<Tooltip> tooltip = new MutableObject<>(this.get(Settings.RENDERER).apply(this).<A>cast().getTooltip(this, mouse)); + Mutable<Tooltip> tooltip = new MutableObject<>(getRenderer().<A>cast().getTooltip(this, mouse)); if (tooltip.getValue() == null) return null; tooltip.getValue().getText().addAll(get(EntryStack.Settings.TOOLTIP_APPEND_EXTRA).apply(this)); tooltip.setValue(get(Settings.TOOLTIP_PROCESSOR).apply(this, tooltip.getValue())); |
