Tfarcenim / DankStorageFabric

Creative Commons Zero v1.0 Universal
11 stars 9 forks source link

Adding multiple features #6

Closed Seres67 closed 4 years ago

Seres67 commented 4 years ago

First, let me apologize for all these changes but I had auto formating enabled on my IDE and yeah, that's how I got to +4445/-3396.

This commit adds multiple features and I'll give links pointing where I changed/added code so it is easier for you to cherry-pick.

First, upgrades seem to keep inventory now: https://github.com/Seres67/DankStorageFabric/blob/a9c390cbbdfd2eeb21cbb74dc1f5a0e00e6bd44e/src/main/java/tfar/dankstorage/item/UpgradeItem.java#L66

Second, I added shield support so now shield inside Danks block projectiles: https://github.com/Seres67/DankStorageFabric/blob/a9c390cbbdfd2eeb21cbb74dc1f5a0e00e6bd44e/src/main/java/tfar/dankstorage/item/DankItem.java#L138

Lastly, I made it so every feature on Danks work in your offhand, like scrolling item or changing pickup mode: https://github.com/Seres67/DankStorageFabric/blob/a9c390cbbdfd2eeb21cbb74dc1f5a0e00e6bd44e/src/main/java/tfar/dankstorage/network/server/C2SMessagePickBlock.java#L26 https://github.com/Seres67/DankStorageFabric/blob/a9c390cbbdfd2eeb21cbb74dc1f5a0e00e6bd44e/src/main/java/tfar/dankstorage/network/server/C2SMessageScrollSlot.java#L32 https://github.com/Seres67/DankStorageFabric/blob/a9c390cbbdfd2eeb21cbb74dc1f5a0e00e6bd44e/src/main/java/tfar/dankstorage/network/server/C2SMessageTagMode.java#L25 https://github.com/Seres67/DankStorageFabric/blob/a9c390cbbdfd2eeb21cbb74dc1f5a0e00e6bd44e/src/main/java/tfar/dankstorage/network/server/C2SMessageToggleUseType.java#L27

Tfarcenim commented 4 years ago

looks good