mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2024-12-21 04:49:51 +08:00
Added tripwire hook to flip/rotate.
This commit is contained in:
parent
df3062a68f
commit
bcf4204ffc
@ -104,6 +104,7 @@ public static int rotate90(int type, int data) {
|
|||||||
case BlockID.WOODEN_DOOR:
|
case BlockID.WOODEN_DOOR:
|
||||||
case BlockID.IRON_DOOR:
|
case BlockID.IRON_DOOR:
|
||||||
case BlockID.COCOA_PLANT:
|
case BlockID.COCOA_PLANT:
|
||||||
|
case BlockID.TRIPWIRE_HOOK:
|
||||||
int extra = data & ~0x3;
|
int extra = data & ~0x3;
|
||||||
int withoutFlags = data & 0x3;
|
int withoutFlags = data & 0x3;
|
||||||
switch (withoutFlags) {
|
switch (withoutFlags) {
|
||||||
@ -272,6 +273,7 @@ public static int rotate90Reverse(int type, int data) {
|
|||||||
case BlockID.WOODEN_DOOR:
|
case BlockID.WOODEN_DOOR:
|
||||||
case BlockID.IRON_DOOR:
|
case BlockID.IRON_DOOR:
|
||||||
case BlockID.COCOA_PLANT:
|
case BlockID.COCOA_PLANT:
|
||||||
|
case BlockID.TRIPWIRE_HOOK:
|
||||||
int extra = data & ~0x3;
|
int extra = data & ~0x3;
|
||||||
int withoutFlags = data & 0x3;
|
int withoutFlags = data & 0x3;
|
||||||
switch (withoutFlags) {
|
switch (withoutFlags) {
|
||||||
@ -509,6 +511,7 @@ public static int flip(int type, int data, FlipDirection direction) {
|
|||||||
case BlockID.REDSTONE_REPEATER_OFF:
|
case BlockID.REDSTONE_REPEATER_OFF:
|
||||||
case BlockID.REDSTONE_REPEATER_ON:
|
case BlockID.REDSTONE_REPEATER_ON:
|
||||||
case BlockID.COCOA_PLANT:
|
case BlockID.COCOA_PLANT:
|
||||||
|
case BlockID.TRIPWIRE_HOOK:
|
||||||
switch (data & 0x3) {
|
switch (data & 0x3) {
|
||||||
case 0:
|
case 0:
|
||||||
case 2:
|
case 2:
|
||||||
|
Loading…
Reference in New Issue
Block a user