Skip to content
This repository was archived by the owner on Mar 3, 2022. It is now read-only.

damascus#16

Open
FrostyFlippper wants to merge 3 commits intoDaRealTurtyWurty:mainfrom
FrostyFlippper:main
Open

damascus#16
FrostyFlippper wants to merge 3 commits intoDaRealTurtyWurty:mainfrom
FrostyFlippper:main

Conversation

@FrostyFlippper
Copy link

added damascus ingots and weapons. Added more tags for jei. Fixed the ordering of the items in the iteminit to be organised.
Some small things still need to be polished, but this is being pulled now before you lock/delete this github so it doesnt get deleted. These other things I will fix tomorrow.

added damascus ingots and weapons. Added more tags for jei. Fixed the ordering of the items in the iteminit to be organised.
Copy link
Contributor

@tesinormed tesinormed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

review of formatting and not actual code

@Override
public void appendHoverText(ItemStack pstack, @Nullable Level plevel,
List<Component> pTooltipComponents, TooltipFlag pIsAdvanced){
if(Screen.hasShiftDown()){
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will crash on the server. Do not use this. Instead use the method inside the player class

public void appendHoverText(ItemStack pstack, @Nullable Level plevel,
List<Component> pTooltipComponents, TooltipFlag pIsAdvanced){
if(Screen.hasShiftDown()){
pTooltipComponents.add(new TranslatableComponent("tooltip.ancientology.mjolnir"));
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should really be a constant. Creating a new component every time this method is called, is very expensive.

if(Screen.hasShiftDown()){
pTooltipComponents.add(new TranslatableComponent("tooltip.ancientology.mjolnir"));
} else{
pTooltipComponents.add(new TranslatableComponent("tooltip.ancientology.mjolnir.shift"));
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as before, should be constant.

Copy link
Contributor

@tesinormed tesinormed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not resolved

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants