-
Notifications
You must be signed in to change notification settings - Fork 7
refactor Drums, #55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
refactor Drums, #55
Conversation
chrombread
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
quick suggestion
src/main/java/com/fouristhenumber/utilitiesinexcess/common/blocks/BlockDrum.java
Outdated
Show resolved
Hide resolved
src/main/java/com/fouristhenumber/utilitiesinexcess/common/blocks/BlockDrum.java
Outdated
Show resolved
Hide resolved
src/main/java/com/fouristhenumber/utilitiesinexcess/common/blocks/BlockDrum.java
Outdated
Show resolved
Hide resolved
src/main/java/com/fouristhenumber/utilitiesinexcess/common/blocks/BlockDrum.java
Outdated
Show resolved
Hide resolved
src/main/java/com/fouristhenumber/utilitiesinexcess/common/blocks/BlockDrum.java
Outdated
Show resolved
Hide resolved
|
Love the IFluidContainerItem support, but... I tried to fill a drum while holding a stack of Certus Quartz Tanks with 16000L water and they all just gone tank.-.drum.mp4 |
…Excess into kath/fix-drums
8e67beb to
8b936a8
Compare
SuperSoupr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly nits but some fixes needed as well, otherwise LGTM 👍
src/main/java/com/fouristhenumber/utilitiesinexcess/common/blocks/BlockDrum.java
Outdated
Show resolved
Hide resolved
src/main/java/com/fouristhenumber/utilitiesinexcess/common/blocks/BlockDrum.java
Outdated
Show resolved
Hide resolved
src/main/java/com/fouristhenumber/utilitiesinexcess/common/blocks/BlockDrum.java
Outdated
Show resolved
Hide resolved
src/main/java/com/fouristhenumber/utilitiesinexcess/common/blocks/BlockDrum.java
Outdated
Show resolved
Hide resolved
src/main/java/com/fouristhenumber/utilitiesinexcess/common/blocks/BlockDrum.java
Outdated
Show resolved
Hide resolved
src/main/java/com/fouristhenumber/utilitiesinexcess/common/blocks/BlockDrum.java
Outdated
Show resolved
Hide resolved
src/main/java/com/fouristhenumber/utilitiesinexcess/common/blocks/BlockDrum.java
Outdated
Show resolved
Hide resolved
src/main/java/com/fouristhenumber/utilitiesinexcess/common/tileentities/TileEntityDrum.java
Outdated
Show resolved
Hide resolved
| public class DrumConfig { | ||
|
|
||
| @Config.DefaultBoolean(true) | ||
| @Config.Comment("Change it to MB vs L's") | ||
| public static boolean unitToDisplay; | ||
|
|
||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry I didn't think of this before but can you add a config for the size of the regular and bedrockium drums?
a69c1e1 to
89550df
Compare
src/main/java/com/fouristhenumber/utilitiesinexcess/common/blocks/BlockDrum.java
Show resolved
Hide resolved
| player.addChatComponentMessage( | ||
| new ChatComponentTranslation( | ||
| "%s %s", | ||
| NumberFormat.DEFAULT.format(drumTank.getFluidAmount()), | ||
| DrumConfig.unitToDisplay ? "mB" : "L")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/main/java/com/fouristhenumber/utilitiesinexcess/common/blocks/BlockDrum.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know how to fix this, but there is a desync between the client and server here. The client doesn't get told how full the drum is when it's loaded. Not sure of how impactful this is but the onBlockActivated logic is wrong on the client because of it

Drums w/ buckets now work as intended in every single way