Skip to content

Commit

Permalink
Fix friction being applied to velocity changes
Browse files Browse the repository at this point in the history
Also fix NoSuchMethodError in LegacyFlagBeam

Signed-off-by: cswhite2000 <[email protected]>
  • Loading branch information
cswhite2000 authored and Electroid committed Apr 29, 2021
1 parent 13da9b5 commit e361596
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public void onPlayerChangedWorld(PlayerChangedWorldEvent event) {
MatchPlayer player = match.getPlayer(event.getPlayer());
if (player == null) return;

if (event.getWorld() == match.getWorld()) showLater(player);
if (event.getPlayer().getWorld() == match.getWorld()) showLater(player);
else beams().forEach(beam -> beam.hide(player));
}

Expand Down
1 change: 1 addition & 0 deletions util/src/main/java/tc/oc/pgm/util/nms/NMSHacks.java
Original file line number Diff line number Diff line change
Expand Up @@ -868,6 +868,7 @@ static Skin getPlayerSkin(Player player) {

static void updateVelocity(Player player) {
EntityPlayer handle = ((CraftPlayer) player).getHandle();
handle.velocityChanged = false;
handle.playerConnection.sendPacket(new PacketPlayOutEntityVelocity(handle));
}

Expand Down

0 comments on commit e361596

Please sign in to comment.