Comments (2)
This is needed for proper agility, so moving it to high priority.
from luna.
I could be wrong but it looks like there's a type mismatch on the server/client. I suspect that this is the root cause of the issue.
Luna via ForcedMovementUpdateBlock.java
@Override
public void encodeForPlayer(Player player, ByteMessage msg) {
ForcedMovement movement = unwrap(player.getForcedMovement());
msg.put(movement.getStartPosition().getX(), ValueType.ADD);
msg.put(movement.getStartPosition().getY(), ValueType.NEGATE);
msg.put(movement.getEndPosition().getX(), ValueType.SUBTRACT);
msg.put(movement.getEndPosition().getY());
msg.putShort(movement.getDurationX());
msg.putShort(movement.getDurationY(), ValueType.ADD);
msg.put(movement.getDirection().getId());
}
Luna-client via Client.java
private void updatePlayer(final Buffer stream, final int updateType, final Player player, final int playerId) {
if ((updateType & 0x400) != 0) {
player.startX = stream.getUnsignedByteS();
player.startY = stream.getUnsignedByteS();
player.endX = stream.getUnsignedByteS();
player.endY = stream.getUnsignedByteS();
player.tickStart = stream.getUnsignedShortA() + tick;
player.tickEnd = stream.getUnsignedLEShortA() + tick;
player.direction = stream.getUnsignedByteS();
player.resetPath();
}
from luna.
Related Issues (20)
- Dropping two items of the same type does not work HOT 1
- Make MobList#retrieve use Optional#ofNullable & update documentation HOT 5
- Minor mistake in startFishing.kts HOT 1
- Feature request: Skill requirements for equipment HOT 1
- GroundItem expire times are in ticks not in minutes HOT 3
- Cannot use DefinitionRepository outside of package HOT 1
- Unnecessary calls being made to remote maven repositories (gradle)
- Inconsistency in ChunkPosition x and y documentation
- Remove RegionPosition HOT 4
- Consolidate logging settings into a single package
- Move plugins.api into separate module HOT 3
- Remove io.luna.util.LazyVal HOT 2
- Remove io.luna.util.RangeIterator & io.luna.util.LazyVal HOT 1
- Upgrade to Gradle 6.3+ HOT 3
- Option to set the amount of Bcrypt password encryption rounds in luna.toml
- Fetch world map tiles and object data
- [Feature] Automatically check pull-requests for code style consistency
- Resolve unchecked type casting in Chunk and ChunkRepository
- Provide useful information to console whenever a client disconnects abruptly
- Make RDBMS-based persistence easier to set up HOT 1
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 luna.