This repository was archived by the owner on Oct 31, 2024. It is now read-only.
Commit 9b221b7 1 parent 3aa8930 commit 9b221b7 Copy full SHA for 9b221b7
File tree 1 file changed +2
-5
lines changed
common/src/main/java/com/github/franckyi/ibeeditor/client/screen/model
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 4
4
import com .github .franckyi .ibeeditor .client .screen .model .category .item .*;
5
5
import com .github .franckyi .ibeeditor .common .ModTexts ;
6
6
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 .*;
11
8
12
9
public class ItemEditorModel extends StandardEditorModel {
13
10
public ItemEditorModel (ItemEditorContext context ) {
@@ -30,7 +27,7 @@ protected void setupCategories() {
30
27
new ItemBlockListCategoryModel (ModTexts .CAN_DESTROY , this , "CanDestroy" )
31
28
);
32
29
Item item = getContext ().getItemStack ().getItem ();
33
- if (item instanceof PotionItem ) {
30
+ if (item instanceof PotionItem || item instanceof TippedArrowItem ) {
34
31
getCategories ().add (new ItemPotionEffectsCategoryModel (this ));
35
32
}
36
33
if (item instanceof DyeableLeatherItem ) {
You can’t perform that action at this time.
0 commit comments