Sets a new CustomImageObject's default position to the player's position
This commit is contained in:
@@ -152,6 +152,10 @@ public class GuiObjectManager extends GuiScreen {
|
||||
public void run() {
|
||||
try {
|
||||
CustomImageObject customImageObject = new CustomImageObject(I18n.format("replaymod.gui.objects.defaultname"), null);
|
||||
|
||||
Position defaultPosition = new Position(mc.getRenderViewEntity().getPosition());
|
||||
customImageObject.getTransformations().setDefaultPosition(defaultPosition);
|
||||
|
||||
objectList.addElement(customImageObject);
|
||||
} catch(IOException e) {
|
||||
e.printStackTrace();
|
||||
|
||||
Reference in New Issue
Block a user