GithubHelp home page GithubHelp logo

btarg / elytraeject Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 67 KB

A simple Fabric mod that lets the player disable their Elytra mid-flight

Home Page: https://curseforge.com/minecraft/mc-mods/elytra-ejector

License: GNU Lesser General Public License v3.0

Java 100.00%
fabric minecraft mod

elytraeject's Introduction

btarg

My favourite programming language is C#, and I mostly focus on game development and modding. I code in my spare time to learn as much as I can, and to create the best solutions to problems I have with existing software and games.

I also own and operate the 21st portfolio, a student-run literature blog, and I occasionally write poetry and reviews for the site.

Buy Me a Coffee at ko-fi.com

My Skills

My Skills

Contact me on LinkedIn if you are interested in hiring a developer with any of these skills!

elytraeject's People

Contributors

btarg avatar

Watchers

 avatar  avatar

elytraeject's Issues

Critical bug

I had a quick look at the code and I'm pretty sure there's a critial bug here:

https://github.com/iCrazyBlaze/ElytraEject/blob/63b3f55c1dc435b88a127787f6c7d9b0f629506f/src/main/java/io/github/icrazyblaze/eject/mixin/ServerPlayerMixin.java#L25-L27

Since the mixin injects at HEAD, this cancels the whole ServerPlayer.tick() method e.g. when you're not wearing an Elytra or not pressing shift, which is pretty much always.

While testing I noticed that items /given aren't synced properly with the client and Potions of Harming deal no damage to the player. Who knows what else this breaks.

Since I don't see any reason to cancel ServerPlayer.tick() at all, the fix should be to simply delete that part of code (and also the cancellable).

I'd also advise you to rename your mixin method name to something more meaningful like cancelFlight, ejectElytra or something, because the method name can appear e.g. in stack traces and injected doesn't tell which mod it is from or what the method actually does.

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.