
xanderindalzone
Members-
Content Count
81 -
Joined
-
Last visited
Community Reputation
1 NeutralAbout xanderindalzone
-
Rank
Stone Miner
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
I fixed the bug by overriding this method in the Gun's class and removing the others that prevented mining: but now it doesnt call onItemRightClick(shoot) when the player is aiming(holding left click) while looking to a non-solid block(glass, flower, etc). And by the way, is there a way to also set destroy speed to 0 on creative while holding the item? because if I remove the left click interaction on creative it still lags the player movement while aiming and looking to any block.
-
Hi, I have a weird issue, I dont know why but when I hold left click with a Gun Item(to aim) in the main hand, looking at grass, flowers, or torches, the player gets stuck and cant move until I stop holding left click or stop looking at the grass, flower, torch, etc,.... How could I fix this? I think i've checked all the methods from the Gun class and all the events that relate to this issue, but none is making this happen. PD: in creative mode it has a different, it just causes the player movement to lag, and its triggered by holding left click with any block. Here's the repo: Gun class Footage:
-
is this ok now? I'm using the first List I had, List<Item>, because you said the issue was in the "static" initializing thing. I'm creating a new SortedItemList object in CommonSetup so I can get the predifined List for the Comparator, then I use the Mod Class instance field to access that mod object's Comparator field. its still working as expected ingame at least ๐ Overriden method in the ItemGroup class:
-
thx for the guide... and thx for the update... its working For anyone interesed on the end result, here it is: 1.I made a class to store the static comparator with a static list with all the items in the order I want 2. I overriden the fill() method in the CustomTab class that I wanted to sort, sorting the item list after calling super: