Comments (9)
It seems as if the first if statement is the reason for the "bug" appearing.
EntityClientPlayerMP player = mc.thePlayer;
boolean hasCape = player.func_152122_n();
hasCape = event.buttonstate && hasCape;
@SuppressWarnings("unused")
float f4;
if (hasCape && !player.isInvisible() && !player.getHideCape())
if (player != null && !player.isDead && player.isSneaking()){
// other code following
}
I'm certainly not an expert at Java and am only familiar with web development, but may I ask what that Player.func_152122_n() method is supposed to do? The rest seems to be self-explaining.
EDIT: Tried building ebeta10 with the specific line removed and the behaviour ingame is now as it was back in "the old version". However, when trying to build the current version ebeta17, gradlew returns "some errors" even when the source is not touched at all. Would another issue here on GitHub be neccessary to solve that problem?
from adventurebackpack2.
keep EntityClientPlayerMP player = mc.thePlayer; do not removed that piece of the code because you need it for
if (player != null && !player.isDead && player.isSneaking()) { ItemStack backpack = Wearing.getWearingBackpack(player); if (backpack != null && backpack.getItem() instanceof ItemAdventureBackpack) {
reason why i label it bug because if i were to removed it some items you were to shift mouse wheel moving you can mess up your item like example shift + mouse wheel moving with Diamond Hoe
from adventurebackpack2.
Thank you for your reply!
I was actually referring to this line (the line before the one you pointed out)
if (hasCape && !player.isInvisible() && !player.getHideCape())
that, when removed, made everything working as before. If I keep that line, neither changing the mode of the Hose (item) nor selecting one of the tools I put in the backpack work. I tried out removing that line and it seems to be working as it was in the last "official" version.
My final question would really be about building ebeta17 with this line removed, but this seems to fail (though the error seems to be unrelated to that). I hope it's ok that I attach the error log to this comment. Otherwise, I feel free to ask, and I will create a separate issue :)
from adventurebackpack2.
@nVentis
yes i got this error too. I try to fix it with the pull request.
from adventurebackpack2.
Thank you! I'm looking forward to your solution.
from adventurebackpack2.
The Steam Tank not shown as Steam tank and have a water fluid Texture but all the other things works fine. The Hose thing I can't fix. My Java knowledge is just very basic.
from adventurebackpack2.
I have the hose fix and re-added feature
https://gyazo.com/3143660f98f48177dc671fb0ff26fd41
but i ran to a problem fast scroll wheel and you lose the item's it will take a while to debug the problem and fix it
from adventurebackpack2.
new update coming out soon to sort out all of these bugs
from adventurebackpack2.
https://github.com/runescapejon/AdventureBackpack2/releases
Fixed
from adventurebackpack2.
Related Issues (20)
- want a fix HOT 7
- Bag despawned on server reconnect
- you're calling a client class in the server HOT 2
- Crash when filling water bottle from backpack on a multiplayer server HOT 1
- Integration with HungerOverhaul HOT 1
- Fix localization of Tags HOT 8
- Wolf Backpack not works on Dire Wolfs from Ender Zoo HOT 2
- Issue with Thermos based Server HOT 13
- Dragon backpack dissapeared on death HOT 1
- 1.7.10-h1 Server Crash (Thaumcraft?) HOT 2
- Transferring inventory from the ingredient backpack to the crafted backpack
- Shuffle Disable HOT 1
- Server crash HOT 1
- Duplication bug HOT 2
- Update Russian localization HOT 1
- Bat Backpack and Fuel
- localization HOT 1
- NEI Fill Support for Crafting?
- 1.12.2
- [Suggestion] Make the Clockwork Crossbow enchantable with bow enchants
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adventurebackpack2.