Giter Site home page Giter Site logo

Comments (9)

nVentis avatar nVentis commented on July 28, 2024

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.

runescapejon avatar runescapejon commented on July 28, 2024

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.

nVentis avatar nVentis commented on July 28, 2024

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 :)

ebeta17 Build Error.txt

from adventurebackpack2.

Dream-Master avatar Dream-Master commented on July 28, 2024

@nVentis
yes i got this error too. I try to fix it with the pull request.

from adventurebackpack2.

nVentis avatar nVentis commented on July 28, 2024

Thank you! I'm looking forward to your solution.

from adventurebackpack2.

Dream-Master avatar Dream-Master commented on July 28, 2024

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.

runescapejon avatar runescapejon commented on July 28, 2024

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.

runescapejon avatar runescapejon commented on July 28, 2024

new update coming out soon to sort out all of these bugs

from adventurebackpack2.

runescapejon avatar runescapejon commented on July 28, 2024

https://github.com/runescapejon/AdventureBackpack2/releases
Fixed

from adventurebackpack2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.