Skip to content
This repository was archived by the owner on Oct 31, 2024. It is now read-only.

Commit 9b221b7

Browse files
committed
feat: potion effects for tipped arrow (#59)
1 parent 3aa8930 commit 9b221b7

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

common/src/main/java/com/github/franckyi/ibeeditor/client/screen/model/ItemEditorModel.java

+2-5
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@
44
import com.github.franckyi.ibeeditor.client.screen.model.category.item.*;
55
import com.github.franckyi.ibeeditor.common.ModTexts;
66
import net.minecraft.nbt.Tag;
7-
import net.minecraft.world.item.BlockItem;
8-
import net.minecraft.world.item.DyeableLeatherItem;
9-
import net.minecraft.world.item.Item;
10-
import net.minecraft.world.item.PotionItem;
7+
import net.minecraft.world.item.*;
118

129
public class ItemEditorModel extends StandardEditorModel {
1310
public ItemEditorModel(ItemEditorContext context) {
@@ -30,7 +27,7 @@ protected void setupCategories() {
3027
new ItemBlockListCategoryModel(ModTexts.CAN_DESTROY, this, "CanDestroy")
3128
);
3229
Item item = getContext().getItemStack().getItem();
33-
if (item instanceof PotionItem) {
30+
if (item instanceof PotionItem || item instanceof TippedArrowItem) {
3431
getCategories().add(new ItemPotionEffectsCategoryModel(this));
3532
}
3633
if (item instanceof DyeableLeatherItem) {

0 commit comments

Comments
 (0)