mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-02-21 12:32:37 +01:00
parent
1afdf134cc
commit
0d9d4eda61
@ -4498,6 +4498,13 @@ public class Room implements Comparable<Room>, ISerialize, Runnable {
|
|||||||
|
|
||||||
double height = tile.getStackHeight();
|
double height = tile.getStackHeight();
|
||||||
|
|
||||||
|
for(RoomTile tile2 : occupiedTiles) {
|
||||||
|
double sHeight = tile2.getStackHeight();
|
||||||
|
if(sHeight > height) {
|
||||||
|
height = sHeight;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (Emulator.getPluginManager().isRegistered(FurnitureBuildheightEvent.class, true)) {
|
if (Emulator.getPluginManager().isRegistered(FurnitureBuildheightEvent.class, true)) {
|
||||||
FurnitureBuildheightEvent event = Emulator.getPluginManager().fireEvent(new FurnitureBuildheightEvent(item, owner, 0.00, height));
|
FurnitureBuildheightEvent event = Emulator.getPluginManager().fireEvent(new FurnitureBuildheightEvent(item, owner, 0.00, height));
|
||||||
if (event.hasChangedHeight()) {
|
if (event.hasChangedHeight()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user