mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-09-13 16:38:06 +02:00
Reverting ementalos change on freeze-afk, hopefully fixing the flickering.
This commit is contained in:
parent
67c0f57756
commit
6012086fa5
@ -95,9 +95,16 @@ public class EssentialsPlayerListener extends PlayerListener
|
|||||||
final Location from = event.getFrom();
|
final Location from = event.getFrom();
|
||||||
final Location to = event.getTo().clone();
|
final Location to = event.getTo().clone();
|
||||||
to.setX(from.getX());
|
to.setX(from.getX());
|
||||||
to.setY(from.getBlock().getTypeId() == 0 ? from.getY() - 1 : from.getY());
|
to.setY(from.getY());
|
||||||
to.setZ(from.getZ());
|
to.setZ(from.getZ());
|
||||||
event.setTo(to);
|
try
|
||||||
|
{
|
||||||
|
event.setTo(Util.getSafeDestination(to));
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
event.setTo(to);
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user