mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-12-25 01:57:53 +01:00
Fix player markers on AWS S3 web
This commit is contained in:
parent
d9c5b78dbc
commit
10289f85b7
@ -469,7 +469,7 @@ public class AWSS3MapStorage extends MapStorage {
|
||||
public boolean setPlayerFaceImage(String playername, FaceType facetype,
|
||||
BufferOutputStream encImage) {
|
||||
boolean done = false;
|
||||
String baseKey = prefix + "faces/" + facetype.id + "/" + playername + ".png";
|
||||
String baseKey = prefix + "tiles/faces/" + facetype.id + "/" + playername + ".png";
|
||||
try {
|
||||
if (encImage == null) { // Delete?
|
||||
DeleteObjectRequest delreq = DeleteObjectRequest.builder().bucketName(bucketname).key(baseKey).build();
|
||||
@ -494,7 +494,7 @@ public class AWSS3MapStorage extends MapStorage {
|
||||
|
||||
@Override
|
||||
public boolean hasPlayerFaceImage(String playername, FaceType facetype) {
|
||||
String baseKey = prefix + "faces/" + facetype.id + "/" + playername + ".png";
|
||||
String baseKey = prefix + "tiles/faces/" + facetype.id + "/" + playername + ".png";
|
||||
boolean exists = false;
|
||||
try {
|
||||
ListObjectsV2Request req = ListObjectsV2Request.builder().bucketName(bucketname).prefix(baseKey).maxKeys(1).build();
|
||||
|
Loading…
Reference in New Issue
Block a user