mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-01 02:46:41 +00:00
- Added proper block flipping code for all blocks with proper rotation code except sign posts
- Fixed block rotation code for some blocks and cleaned it up a lot - Added block rotation code for powered rails and detector rails - //flip now flips all blocks, not just half of them
This commit is contained in:
@ -19,6 +19,7 @@
|
||||
|
||||
package com.sk89q.worldedit.blocks;
|
||||
|
||||
import com.sk89q.worldedit.CuboidClipboard.FlipDirection;
|
||||
import com.sk89q.worldedit.data.BlockData;
|
||||
|
||||
/**
|
||||
@ -109,8 +110,9 @@ public class BaseBlock {
|
||||
|
||||
/**
|
||||
* Flip this block.
|
||||
* @param direction
|
||||
*/
|
||||
public void flip() {
|
||||
data = (char)BlockData.flip(type, data);
|
||||
public void flip(FlipDirection direction) {
|
||||
data = (char)BlockData.flip(type, data, direction);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user