mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-04 12:06:41 +00:00
Added BlockInteractEvent to replace handleBlockLeftClick().
Needed quite a shim for tools/brushes for now.
This commit is contained in:
@ -49,7 +49,7 @@ public class TargetBlock {
|
||||
* @param player player to work with
|
||||
*/
|
||||
public TargetBlock(LocalPlayer player) {
|
||||
this.world = LocalWorldAdapter.wrap(player.getWorld());
|
||||
this.world = LocalWorldAdapter.adapt(player.getWorld());
|
||||
this.setValues(player.getPosition(), player.getYaw(), player.getPitch(),
|
||||
300, 1.65, 0.2);
|
||||
}
|
||||
@ -73,7 +73,7 @@ public class TargetBlock {
|
||||
* @param checkDistance how often to check for blocks, the smaller the more precise
|
||||
*/
|
||||
public TargetBlock(Entity player, int maxDistance, double checkDistance) {
|
||||
this.world = LocalWorldAdapter.wrap(player.getWorld());
|
||||
this.world = LocalWorldAdapter.adapt(player.getWorld());
|
||||
this.setValues(player.getPosition(), player.getYaw(), player.getPitch(),
|
||||
maxDistance, 1.65, checkDistance);
|
||||
}
|
||||
|
Reference in New Issue
Block a user